diff options
Diffstat (limited to 'templates/page.html')
| -rw-r--r-- | templates/page.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..32b1607 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,16 @@ +{% 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 }}">← 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.link %} + <p><a class="btn btn-primary" href="{{ page.extra.link }}">{{ page.extra.link_label | default(value="source") | lower }} →</a></p> + {% endif %} +</article> +{% endblock content %} |
