summaryrefslogtreecommitdiff
path: root/templates/page.html
blob: 0682a664fba281820dbf91d225c118fd0b0aa704 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{% extends "base.html" %}

{% block title %}{{ page.title | lower }} · {{ config.title }}{% endblock title %}
{% block description %}{{ page.description | default(value=config.description) }}{% endblock description %}

{% block content %}
<p class="back"><a href="{{ section.permalink | default(value=get_url(path="/")) | safe }}">&larr; back</a></p>
<article class="prose">
  <h1 class="page-label">{{ page.title }}</h1>
  {% if page.description %}<p class="lede">{{ page.description }}</p>{% endif %}
  {{ page.content | safe }}
  {% if page.extra.appstore or page.extra.link %}
  <p class="app-actions">
    {% if page.extra.appstore %}<a class="btn btn-primary" href="{{ page.extra.appstore }}">app store &rarr;</a>{% endif %}
    {% if page.extra.link %}<a class="btn" href="{{ page.extra.link }}">{{ page.extra.link_label | default(value="source") | lower }} &rarr;</a>{% endif %}
  </p>
  {% endif %}
  {% if page.extra.privacy %}
  <p class="privacy-link"><a href="{{ get_url(path=page.extra.privacy) | safe }}">privacy policy &rarr;</a></p>
  {% endif %}
</article>
{% endblock content %}