The following code snippets showcase
how you can return content based on a
client query via a search query.
layout/theme.liquid
Propagates alternative layouts.
snippets/Layout.liquid
Renders alternative layouts.
snippets/Endpoints.liquid
Checks whether the search query starts with a given marker.
snippets/Endpoint-Cats.liquid
Returns JSON with as many ðąs as the query specified.
Output
When you navigate to /search?q=ðą20
When you open to /search.json?q=ðą20