diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2017-06-09 21:02:27 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2017-06-09 21:02:27 +0200 |
commit | c0ccec669363d7757403d2c50c8e6a0934307b04 (patch) | |
tree | be489d518d7a68fb6da4ae8ee8fafe5d8597ddc5 /kyrias_website/templates/page.html | |
download | kyrias-website-c0ccec669363d7757403d2c50c8e6a0934307b04.tar.xz |
Initial commit
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'kyrias_website/templates/page.html')
-rw-r--r-- | kyrias_website/templates/page.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/kyrias_website/templates/page.html b/kyrias_website/templates/page.html new file mode 100644 index 0000000..cca59af --- /dev/null +++ b/kyrias_website/templates/page.html @@ -0,0 +1,27 @@ +{% extends 'base.html' %} + +{% block head %} +<title>{{ page.title }}</title> +{% endblock %} + +{% block content %} +<article itemscope itemtype="http://schema.org/Article"> + <header> + <h1>{{ page.title }}</h1> + <time itemprop="datePublished" datetime="{{ page.meta.date }}">{{ page.meta.date }}</time> + </header> + <div> + {{ page.html|safe }} + </div> + <footer> + {% if 'tags' in page.meta %} + <div id="tags"> + Tags: + {% set comma = joiner(",") %} + {% for tag in page.meta.tags %}{{ comma() }} + <a href="{{ url_for('tags', _anchor=tag) }}">{{ tag }}</a>{% endfor %} + </div> + {% endif %} + </footer> +</article> +{% endblock %} |