blob: 8391505dc16e4d50f570d131fbe3c5eee14229cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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 %}
|