diff options
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 %} |