]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - templates/artinfo.html
Add 2020-11-28-chanserv-cloak-changes.md (#476)
[irc/freenode/web-7.0.git] / templates / artinfo.html
index f7b797773f58f74b368fb45eb0daf68e31d35264..31a2d41ea60b3ae1c869bd9c3f886370fd7f7d99 100644 (file)
@@ -1,21 +1,19 @@
-{% macro info(article) %}
-<div class="art-info">
-    <a href="{{ article.url }}"><b class="art">{{ article.title }}</b></a>&nbsp;
-    <span class="art-date">{{ article.author }} on {{ article.datetime.astimezone().date() }}</span>
-</div>
+{% macro info(article, what="h1") %}
+<a href="{{ article.url }}"><{{what}} class="art">{{ article.title }}</{{what}}></a>
+<span class="art-date">{{ article.author }} on {{ article.datetime.astimezone().date() }}</span>
 {% endmacro %}
 
 {% macro nav(article) %}
 <div class="art-nav">
     {% if article.older -%}
-    <a href="{{ article.older.url }}">older</a>
+    <span><a href="{{ article.older.url }}">previous article</a><span class="invisible">, </span></span>
     {%- else -%}
     <span></span>
     {%- endif -%}
-    <a href="{{ url_for("archive") }}">all</a>
-    {%- if article.newer %}
-    <a href="{{ article.newer.url }}">newer</a>
-    {%- else %}
+    <span><a href="{{ url_for("archive") }}">all</a></span>
+    {%- if article.newer -%}
+    <span><span class="invisible">, </span><a href="{{ article.newer.url }}">next article</a></span>
+    {%- else -%}
     <span></span>
     {%- endif %}
 </div>