Template Variables

SuCoS provides two objects in every Liquid template: page and site.

page — properties of the current page being rendered. Changes for every page.

site — site-wide configuration and the full content collection. Same on every page.

Quick reference

{{ page.Title }}          ← current page title
{{ page.Permalink }}      ← absolute URL
{{ page.Date | date: '%Y-%m-%d' }}   ← formatted date
{{ page.ContentPreRendered }}         ← Markdown rendered to HTML

{{ site.Title }}          ← site name from sucos.yaml
{{ site.Params.Logo }}    ← custom param from sucos.yaml

{% for post in site.RegularPages %}  ← iterate all pages
{% endfor %}

For the full lists, see: