Skip to documentation content

Tag Page

All complete examples

Demonstrate Tag Page.

What this example teaches

  • Compose Tag Page from reusable section and theme templates
  • Keep the page template thin by including shared partials
  • Keep custom fields on the template that owns them

View this pattern on the live demo site

Files

Tag archive page wrapping the tag-main section.

Liquid
{% comment %}
	Displays a tag page, including the tag name, image, description, and recent blog posts with the tag
{% endcomment -%}
{%- include "/_header.liquid" -%}
{%- include "/sections/_generic_banner.liquid" section_class:'text-bg-primary' -%}
{%- include "/sections/_breadcrumbs.liquid" -%}
{%- include "/sections/_tag_main.liquid" section_class:'text-bg-body' -%}
{%- include "/sections/_cta_snippet.liquid" section_class:'py-4 py-lg-5' -%}
{%- include "/_footer.liquid" -%}