Skip to content

[9.x] Add Blade tabs to templating snippets - #855

Merged
duncanmcclean merged 1 commit into
9.xfrom
blade-snippets
Sep 4, 2026
Merged

duncanmcclean merged 1 commit into
9.xfrom
blade-snippets

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request adds Blade equivalents to all of the Antlers snippets in the documentation, using Mintlify's <CodeGroup> component so readers can switch between Antlers and Blade. Mintlify syncs the selected tab across the page, so choosing "Blade" once flips every snippet on that page.

The Blade snippets use Statamic's Antlers Blade Components (eg. <s:runway:post>), with @foreach for scoped and relationship loops and $paginate['prev_page'] for pagination.

This PR also removes the standalone "Blade" section from the templating page, since it's now redundant, and replaces it with a tip linking to the Antlers Blade Components docs. It also fixes the Publish State snippet, which was using {{ posts }} without an as="posts" parameter.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D2UJ6J4JjfhRbejN8qphNm
@duncanmcclean
duncanmcclean merged commit 19f58f2 into 9.x Sep 4, 2026
15 checks passed
@duncanmcclean
duncanmcclean deleted the blade-snippets branch September 4, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant