Statac

Reference

Every setting, front matter field, template name, filter and function Statac has, each in a line or two.

Each of Statac’s names has a line or two here. An editor shows the same words when you point at the name, and the debug panel shows them beside it.

Settings and front matter

Templates

  • Names a template is handed: The names a template, a snippet or a file in snippets/markdown/ reads on their own, before any dot.
  • A page in a template: What a template reads on a page: after page., or after any other name that stands for a page, such as post.title or page.next.url.
  • The site in a template: What a template reads on the site, after site..
  • A list in a template: What a template reads on a list: a folder, a tag, a series, or a list a page makes with posts: or each:.
  • A date in a template: What a template reads on a date, such as page.date.year.
  • Webmentions in a template: What a template reads on page.webmentions, and on each mention in it.
  • A video in a template: What a template reads on the video that page.youtube or page.vimeo returns.
  • An image in a template: What a template reads on the image that page.image returns, and on each image from page.images, a video’s thumbnail, a mention’s avatar, and image in image.html.
  • A file in a template: What a template reads on the file that page.file returns, and on the video or recording that page.video or page.audio returns.
  • A social card in a template: What a layout reads on page.card: the card Statac draws for the page, or the social image its og_image names.
  • A heading in a template: What a template reads on each heading in page.toc, and in each heading’s headings.
  • Search in a template: What a template reads on the search box that page.search_box() returns, and on the search form site.search_without_javascript describes.
  • A search form’s field in a template: What a template reads on each hidden field in site.search_without_javascript.fields.
  • A loop in a template: What a template reads on loop inside a for loop.
  • Filters: Each filter a template can write after |, such as {{ page.date | moment }}: Statac’s own, and the template engine’s.
  • Tests: Each test a template can write after is, such as {% if page.title is defined %}, or name in select and reject.
  • Functions: Each function a template can call by its name, such as {{ css("site.css") }}: Statac’s own, and the template engine’s.

Something unclear or wrong? Open an issue.