summaryrefslogtreecommitdiffstats
path: root/kyrias_website/templates/page.html
diff options
context:
space:
mode:
Diffstat (limited to 'kyrias_website/templates/page.html')
-rw-r--r--kyrias_website/templates/page.html27
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 %}