Skip to documentation content

Build a generic content page

All complete examples

Compose a page template from shared header, banner, breadcrumbs, content, FAQ, CTA, and footer templates.

What this example teaches

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

View this pattern on the live demo site

Files

Canonical interior page: includes banner, breadcrumbs, content, FAQs, and CTA.

Liquid
{% comment %}
	Displays a simple generic page
{% endcomment -%}
{%- include "/_header.liquid" no_header_title:true -%}
{%- include "/sections/_generic_banner.liquid" -%}
{%- include "/sections/_breadcrumbs.liquid" -%}
{%- include "/sections/_generic_content.liquid" item:entity section_class:'py-5' is_main:true -%}
{%- include "/sections/_faqs.liquid" section_class:'py-5 text-bg-light' -%}
{%- include "/sections/_simple_cta.liquid" -%}
{%- include "/_footer.liquid" -%}