]> jfr.im git - irc/freenode/web-7.0.git/blame_incremental - templates/artinfo.html
Update policies.md
[irc/freenode/web-7.0.git] / templates / artinfo.html
... / ...
CommitLineData
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 <span><a href="{{ article.older.url }}">previous article</a><span class="invisible">, </span></span>
10 {%- else -%}
11 <span></span>
12 {%- endif -%}
13 <span><a href="{{ url_for("archive") }}">all</a></span>
14 {%- if article.newer -%}
15 <span><span class="invisible">, </span><a href="{{ article.newer.url }}">next article</a></span>
16 {%- else -%}
17 <span></span>
18 {%- endif %}
19</div>
20{% endmacro %}