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