diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2016-11-12 02:06:41 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2016-11-12 02:06:41 +0100 |
commit | 5591d977998a189573e8f780a5270ab81bb56ddc (patch) | |
tree | 16188b30ea414fb556b024aa20a4b918b1d61fbc /templates/entry.html | |
download | kyblo-5591d977998a189573e8f780a5270ab81bb56ddc.tar.xz |
Initial commit
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'templates/entry.html')
-rw-r--r-- | templates/entry.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/entry.html b/templates/entry.html new file mode 100644 index 0000000..25a5f25 --- /dev/null +++ b/templates/entry.html @@ -0,0 +1,26 @@ +{% extends 'layout.html' %} + +{% block content %} +<article itemscope itemtype="http://schema.org/Article"> + <div> + <h1>{{ entry['title'] }}</h1> + <time itemprop="datePublished" datetime="{{ entry['date'] }}">{{ entry['date'] }}</time> + </div> + <div> + {{ content }} + </div> +</article> +{% if older and newer%} +<div> + <a href="{{ older['slug'] }}.html">Older</a> — <a href="{{ newer['slug'] }}.html">Newer</a> +</div> +{% elif older %} +<div> + <a href="{{ older['slug'] }}.html">Older</a> +</div> +{% elif newer %} +<div> + <a href="{{ newer['slug'] }}.html">Newer</a> +</div> +{% endif %} +{% endblock %} |