templates/section.html
31 lines · 1280 bytes
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 {% if page.extra.app %}{% set icon_page = get_page(path=page.extra.app) %}{% set icon_class = "app-icon app-icon-xs" %}{% include "partials/app-icon.html" %}{% endif %}
17 <span class="pl-main">
18 <a class="pl-name" href="{{ page.permalink | safe }}">{{ page.title }}</a>
19 {% if page.description %}<span class="pl-desc">{{ page.description }}</span>{% endif %}
20 </span>
21 {% if not section.extra.plain %}
22 <span class="pl-links">
23 {% if page.extra.appstore %}<a class="pl-link" href="{{ page.extra.appstore }}">app store →</a>{% endif %}
24 {% if page.extra.link %}<a class="pl-link" href="{{ page.extra.link }}">{{ page.extra.link_label | default(value="source") | lower }} →</a>{% endif %}
25 </span>
26 {% endif %}
27 </li>
28 {% endfor %}
29</ul>
30{% endif %}
31{% endblock content %}