summaryrefslogtreecommitdiff
path: root/templates/section.html
blob: c3a94897bb99dc5a1d0749353e3752e152a7c213 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 &rarr;</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 }} &rarr;</a>{% endif %}
    </span>
  </li>
  {% endfor %}
</ul>
{% endif %}
{% endblock content %}