krz/krz.sh

clone: git clone https://gitbay.org/krz/krz.sh.git

main: templates/section.html · raw

 1{% extends "base.html" %}
 2
 3{% block title %}{{ section.title | lower }} · {{ config.title }}{% endblock title %}
 4{% block description %}{{ section.description | default(value=config.description) }}{% endblock description %}
 5
 6{% block content %}
 7<article class="prose">
 8  <h1 class="page-label">{{ section.title }}</h1>
 9  {{ section.content | safe }}
10</article>
11
12{% if section.pages %}
13<ul class="plainlist">
14  {% for page in section.pages %}
15  <li>
16    <span class="pl-main">
17      <a class="pl-name" href="{{ page.permalink | safe }}">{{ page.title }}</a>
18      {% if page.description %}<span class="pl-desc">— {{ page.description }}</span>{% endif %}
19    </span>
20    {% if not section.extra.plain %}
21    <span class="pl-links">
22      {% if page.extra.appstore %}<a class="pl-link" href="{{ page.extra.appstore }}">app store &rarr;</a>
23      {% else %}<span class="pl-link pl-link-off" aria-disabled="true">app store — soon</span>{% endif %}
24      {% if page.extra.link %}<a class="pl-link" href="{{ page.extra.link }}">{{ page.extra.link_label | default(value="source") | lower }} &rarr;</a>{% endif %}
25    </span>
26    {% endif %}
27  </li>
28  {% endfor %}
29</ul>
30{% endif %}
31{% endblock content %}