|
|
@ -1,5 +1,7 @@ |
|
|
|
{% extends "base.html" %} |
|
|
|
{% extends "base.html" %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% import "macros.html" as macros %} |
|
|
|
|
|
|
|
|
|
|
|
{% block content %} |
|
|
|
{% block content %} |
|
|
|
{% for page in section.pages | reverse %} |
|
|
|
{% for page in section.pages | reverse %} |
|
|
|
<h1><a href="{{ page.permalink }}" class="stealth">{{ page.title }}</a></h1> |
|
|
|
<h1><a href="{{ page.permalink }}" class="stealth">{{ page.title }}</a></h1> |
|
|
@ -7,12 +9,23 @@ |
|
|
|
<span>{{ page.date | date(format="%Y-%m-%d") }}</span> |
|
|
|
<span>{{ page.date | date(format="%Y-%m-%d") }}</span> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% if page.summary %} |
|
|
|
{% if page.summary %} |
|
|
|
<p>{{ page.summary | safe }}</p> |
|
|
|
{% 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 %} |
|
|
|
{% endif %} |
|
|
|
{% if not loop.last %}<hr>{% endif %} |
|
|
|
{% if not loop.last %}<hr>{% endif %} |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
{% endblock %} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block nav %} |
|
|
|
|
|
|
|
{% set dom = section.relative_path | trim_end_matches(pat="/_index.md") %} |
|
|
|
|
|
|
|
<span><a class="stealth" href="..">../{{ dom }}</a></span> |
|
|
|
|
|
|
|
<noscript id="theme-toggle-placeholder"></noscript> |
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
|
|
{% block footer %} |
|
|
|
{% block footer %} |
|
|
|
<span> |
|
|
|
<span> |
|
|
|
© {{ now() | date(format='%Y') }} |
|
|
|
© {{ now() | date(format='%Y') }} |
|
|
@ -25,7 +38,24 @@ |
|
|
|
{% endblock %} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
|
|
{% block aside %} |
|
|
|
{% block aside %} |
|
|
|
{% for k, thing in section %} |
|
|
|
{% if section.title %} |
|
|
|
{{ k }}: {{ thing }}<br> |
|
|
|
<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 %} |
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if config.extra.xscratch_debug_info %} |
|
|
|
|
|
|
|
<span><strong>Debug info:</strong></span> |
|
|
|
|
|
|
|
{{ macros::debug(thing=section, label="section", recurse=2) }} |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
{% endblock %} |
|
|
|
{% endblock %} |