summaryrefslogtreecommitdiffstats
path: root/kyrias_website/templates/entry.html
diff options
context:
space:
mode:
Diffstat (limited to 'kyrias_website/templates/entry.html')
-rw-r--r--kyrias_website/templates/entry.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/kyrias_website/templates/entry.html b/kyrias_website/templates/entry.html
new file mode 100644
index 0000000..8391505
--- /dev/null
+++ b/kyrias_website/templates/entry.html
@@ -0,0 +1,41 @@
+{% extends 'base.html' %}
+
+{% block head %}
+<title>{{ entry.title }}</title>
+{% endblock %}
+
+{% block content %}
+<article itemscope itemtype="http://schema.org/Article">
+ <header>
+ <h1>{{ entry.title }}</h1>
+ <time itemprop="datePublished" datetime="{{ entry.meta.date }}">{{ entry.meta.date }}</time>
+ </header>
+ <div>
+ {{ entry.html|safe }}
+ </div>
+ <footer>
+ {% if 'tags' in entry.meta %}
+ <div id="tags">
+ Tags:
+ {% set comma = joiner(",") %}
+ {% for tag in entry.meta.tags %}{{ comma() }}
+ <a href="{{ url_for('tags', _anchor=tag) }}">{{ tag }}</a>{% endfor %}
+ </div>
+ {% endif %}
+ </footer>
+</article>
+{% if older or newer %}
+<nav>
+<div id="post-nav">
+{% if older and newer %}
+ <a href="{{ url_for('entry', name=older.path) }}">Older ({{ older.meta.title }})</a> — <a href="{{ url_for('entry', name=newer.path) }}">Newer ({{ newer.meta.title }})</a>
+{% elif older %}
+ <a href="{{ url_for('entry', name=older.path) }}">Older ({{ older.meta.title }})</a>
+{% elif newer %}
+ <a href="{{ url_for('entry', name=newer.path) }}">Newer ({{ newer.meta.title }})</a>
+{% endif %}
+</div>
+</nav>
+{% endif %}
+{% endblock %}
+