Skip to documentation content

Blog Post Page

All complete examples

Demonstrate Blog Post Page.

What this example teaches

  • Compose Blog Post 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

Single-post page template; the article body lives in a section.

Liquid
{% comment %}
	This is the page template to display blog posts.
{% endcomment -%}
{%- include "/_header.liquid" -%}
{%- include "/sections/_breadcrumbs.liquid" -%}
{%- include "/sections/_blogpost_main.liquid" -%}
{%- include "/sections/_cta_snippet.liquid" section_class:'py-4 py-lg-5' -%}
{%- include "/_footer.liquid" -%}