a zola theme
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.9 KiB

3 years ago
{% extends "base.html" %}
{% import "macros.html" as macros %}
3 years ago
{% block content %}
{% for page in section.pages | reverse %}
<h1><a href="{{ page.permalink }}" class="stealth">{{ page.title }}</a></h1>
{% if page.date %}
<span>{{ page.date | date(format="%Y-%m-%d") }}{% if page.extra.author %}, by {{ page.extra.author }}{% endif %}</span>
{% endif %}
{% if page.summary %}
{% if config.extra.summary_max_length %}
{% set sum = page.summary | safe | truncate(length=config.extra.summary_max_length) %}
{% else %}
{% set sum = page.summary | safe %}
{% endif %}
<p>{{ sum | safe }}</p>
{% endif %}
{% if not loop.last %}<hr>{% endif %}
{% endfor %}
3 years ago
{% endblock %}
{% block nav %}
<span>{{ config.extra.index_nav_text | default(value="") }}</span>
<noscript id="theme-toggle-placeholder"></noscript>
{% endblock nav %}
3 years ago
{% block footer %}
<span>
&copy; {{ now() | date(format='%Y') }}
{% if section.extra.author %}
{{ section.extra.author }}
{% elif config.extra.author %}
{{ config.extra.author }}
{% endif %}
</span>
3 years ago
{% endblock %}
{% block aside %}
{% if section.title %}
<h1>{{ section.title }}</h1>
{% endif %}
{% if section.content %}
{{ section.content | safe }}
{% endif %}
{% if section.subsections %}
{{ config.extra.subsections_string | default(value="Subsections:") }}
<ul>
{% for sub in section.subsections %}
{% set dom = sub | trim_end_matches(pat="/_index.md") %}
<li><a class="stealth" href="{{ dom }}">{{ dom }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% if config.extra.xscratch_debug_info %}
<span><strong>Debug info:</strong></span>
{{ macros::debug(thing=section, label="section", recurse=1) }}
{% endif %}
3 years ago
{% endblock %}