summaryrefslogtreecommitdiffstats
path: root/src/templates/journal.html
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-14 01:22:31 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-14 01:27:05 +0200
commitd9ae9febd9668f89c8694b66d7a0323027d416b2 (patch)
tree20d40d7b9e939c90eb7cd8b09fb7f076722c3443 /src/templates/journal.html
parentfd1c56a9763ab2da0edcfdfbafc51db369c3950f (diff)
downloadwebsite-d9ae9febd9668f89c8694b66d7a0323027d416b2.tar.xz
redo website using bupa, ReST, and jinja templates
Diffstat (limited to 'src/templates/journal.html')
-rw-r--r--src/templates/journal.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/templates/journal.html b/src/templates/journal.html
new file mode 100644
index 0000000..0269d2e
--- /dev/null
+++ b/src/templates/journal.html
@@ -0,0 +1,33 @@
+{% extends 'layout.html' %}
+
+{% block content %}
+ <header>
+{% include 'nav.html' %}
+ <h1>The lost journal</h1>
+ </header>
+
+{% for entry in entries %}
+ <article itemscope itemtype="http://schema.org/Article"
+ class="entry" id="entry:{{ entry.id }}">
+
+ <h2 itemprop="name" class="title">{{ entry.title }}</h2>
+
+ <div class="info">
+ Published on
+ <time itemprop="datePublished" datetime="{{ entry.date.strftime('%Y-%m-%d') }}">
+ {{ entry.date.strftime('%Y-%m-%d') }}
+ </time>
+
+ <span itemprop="author" itemscope itemtype="http://schema.org/Person">
+ {% if entry.author_link %}
+ by <a itemprop="name" rel="author" href="{{ entry.author_link }}">{{ entry.author }}</a>
+ {% else %}
+ by {{ entry.author }}
+ {% endif %}
+ </span>
+ </div>
+
+ {{ entry.body }}
+ </article>
+{% endfor %}
+{% endblock content %}