Skip to documentation content

Blog Page

All complete examples

Demonstrate Blog Page.

What this example teaches

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

Blog landing page: thin wrapper around the blog-main section.

Liquid
{% comment %}
	Blog index page (posts feed + optional sidebar).
{% endcomment -%}
{%- include "/_header.liquid" -%}
{%- include "/sections/_breadcrumbs.liquid" -%}
{%- include "/sections/_blog_main.liquid" -%}
{%- include "/_footer.liquid" -%}