]> jfr.im git - irc/freenode/web-7.0.git/blob - templates/artinfo.html
Fix invalid HTML.
[irc/freenode/web-7.0.git] / templates / artinfo.html
1 {% macro info(article, what="h1") %}
2 <a href="{{ article.url }}"><{{what}} class="art">{{ article.title }}</{{what}}></a>
3 <span class="art-date">{{ article.author }} on {{ article.datetime.astimezone().date() }}</span>
4 {% endmacro %}
5
6 {% macro nav(article) %}
7 <div class="art-nav">
8 {% if article.older -%}
9 <a href="{{ article.older.url }}">previous article</a>
10 {%- else -%}
11 <span></span>
12 {%- endif -%}
13 <a href="{{ url_for("archive") }}">view archive</a>
14 {%- if article.newer %}
15 <a href="{{ article.newer.url }}">next article</a>
16 {%- else %}
17 <span></span>
18 {%- endif %}
19 </div>
20 {% endmacro %}