templates/page.html
24 lines · 1285 bytes
1{% extends "base.html" %}
2
3{% block title %}{{ page.title | lower }} · {{ config.title }}{% endblock title %}
4{% block description %}{{ page.description | default(value=config.description) }}{% endblock description %}
5
6{% block content %}
7{% set parent = get_section(path=page.ancestors | last, metadata_only=true) %}
8<p class="back"><a href="{{ parent.permalink | safe }}">← back</a></p>
9<article class="prose">
10 <h1 class="page-label">{{ page.title }}</h1>
11 {% if page.description %}<p class="lede">{{ page.description }}</p>{% endif %}
12 {{ page.content | safe }}
13 {% if page.extra.appstore or page.extra.link %}
14 <p class="app-actions">
15 {% if page.extra.appstore %}<a class="btn btn-primary" href="{{ page.extra.appstore }}">app store →</a>{% endif %}
16 {% if page.extra.link %}<a class="btn" href="{{ page.extra.link }}">{{ page.extra.link_label | default(value="source") | lower }} →</a>{% endif %}
17 </p>
18 {% endif %}
19 {% if page.extra.privacy %}
20 {% if "://" in page.extra.privacy %}{% set privacy_url = page.extra.privacy %}{% else %}{% set privacy_url = get_url(path=page.extra.privacy) %}{% endif %}
21 <p class="privacy-link"><a href="{{ privacy_url | safe }}">privacy policy →</a></p>
22 {% endif %}
23</article>
24{% endblock content %}