diff options
Diffstat (limited to 'templates/section.html')
| -rw-r--r-- | templates/section.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..c3a9489 --- /dev/null +++ b/templates/section.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} + +{% block title %}{{ section.title | lower }} · {{ config.title }}{% endblock title %} +{% block description %}{{ section.description | default(value=config.description) }}{% endblock description %} + +{% block content %} +<article class="prose"> + <h1 class="page-label">{{ section.title }}</h1> + {{ section.content | safe }} +</article> + +{% if section.pages %} +<ul class="plainlist"> + {% for page in section.pages %} + <li> + <span class="pl-main"> + <span class="pl-name">{{ page.title }}</span> + {% if page.description %}<span class="pl-desc">— {{ page.description }}</span>{% endif %} + </span> + <span class="pl-links"> + {% if page.extra.appstore %}<a class="pl-link" href="{{ page.extra.appstore }}">app store →</a> + {% else %}<span class="pl-link pl-link-off" aria-disabled="true">app store — soon</span>{% endif %} + {% if page.extra.link %}<a class="pl-link" href="{{ page.extra.link }}">{{ page.extra.link_label | default(value="source") | lower }} →</a>{% endif %} + </span> + </li> + {% endfor %} +</ul> +{% endif %} +{% endblock content %} |
