Skip to documentation content

Search Results Page

All complete examples

Demonstrate Search Results Page.

What this example teaches

  • Compose Search Results 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

Search results page; the result list lives in a section.

Liquid
{% comment %}
	Display a search page with the search results
{% endcomment -%}
{%- include "/_header.liquid" no_header_title: true -%}
{%- comment %}No banner on the search page{% endcomment -%}
{%- include "/sections/_breadcrumbs.liquid" -%}
{%- include "/sections/_search_main.liquid" section_class:"py-5" -%}
{%- include "/sections/_faqs.liquid" section_class:"text-bg-secondary" -%}
{%- include "/sections/_cta_snippet.liquid" -%}
{%- include "/_footer.liquid" -%}