Skip to documentation content

Error Page

All complete examples

Demonstrate Error Page.

What this example teaches

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

404 (and other error) template; it includes a single content section.

Liquid
{% comment %}
	Display an error page. Note that this may be used for any error code, but will most commonly display a 404 page.
{% endcomment -%}
{%- include "/_header.liquid" no_header_title: true -%}
{%- include "/sections/_error_page_content.liquid" -%}
{%- include "/_footer.liquid" -%}