A new Cecil website

On this page

Templates

The Twig templates of the layouts/ directory override the built-in ones.

Main template

layouts/page.html.twig extends the built-in template and overrides some of its blocks:

{% extends '_default/page.html.twig' %}

{%- block head_css ~%}
  {{- parent() ~}}
  {{ css(asset('css/style.scss')) }}
{%- endblock head_css ~%}

Section templates

The pages of a section can use their own templates, stored in a directory named after the section:

Data files

The files of the data/ directory are available in templates through the site.data variable:

{% for link in site.data.links %}
  <a href="{{ link.url }}">{{ link.name }}</a>
{% endfor %}

Learn more

See the templates documentation.