Basker Docs

Template references

Per-collection field references for every content type Basker passes to your templates

This section is a per-collection reference. For each content type Basker exposes to templates, you'll find:

  • The template filename Basker looks for.
  • The shape of the document object passed to the template (page, event, post, etc.).
  • Common patterns for rendering each collection.

Use it when you need to know which fields are available on a record, or when you're starting a new template for a collection you haven't worked with yet.

Templates by content type

Runtime routing notes

Most content types use a base Liquid template such as templates/page.liquid, templates/post.liquid, or templates/event.liquid. Some pages are route-specific instead of normal collection defaults:

  • Event detail pages use templates/event.liquid; event-instance detail pages use templates/instance.liquid.
  • Event instance listing routes can use templates/instances.liquid.
  • Smart collections use templates/collection.liquid, even though the docs call the object smart-collection.
  • Category and tag pages are wired by dedicated routes as templates/category and templates/tags.
  • 404 pages are rendered by custom not-found middleware using templates/404.liquid when present.
  • Templates — how to write a template using these references.
  • Template context — the global functions and variables available alongside the per-collection document.

On this page