pulec.foo git

zola-theme-plc-example

Example for Zola plc theme

themes/plc/templates/section.html

Mode
-rw-r--r--
Size
712 bytes
Reference
themes/plc/templates/section.html@8ebfcee8b464 (last change)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{%- extends "base.html" -%}
{%- block title %}{{ section.title | default(value=config.title) }}{% endblock title -%}
{%- block main %}
        <h1>{{ section.title | default(value=config.title) }}</h1>
	{{ section.content | safe }}
        {%- if section.pages %}
        <ul>
            {%- for page in section.pages %}
            <li>
                {%- if page.date %}
                <time datetime="{{ page.date }}">{{ page.date | date(format=config.extra.date_format | default(value="%y.%m.%d")) }}</time>
                {%- endif %}
                <a href="{{ page.permalink }}">{{ page.title }}</a>
            </li>
            {%- endfor %}
        </ul>
        {%- endif %}
{%- endblock main %}