]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - templates/artinfo.html
made links make more sense on the article pages
[irc/freenode/web-7.0.git] / templates / artinfo.html
index f7b797773f58f74b368fb45eb0daf68e31d35264..e8f10e93906dc3a53a3e21bcbf80851d1edd6fcb 100644 (file)
@@ -1,6 +1,6 @@
-{% macro info(article) %}
+{% macro info(article, what="h1") %}
 <div class="art-info">
-    <a href="{{ article.url }}"><b class="art">{{ article.title }}</b></a>&nbsp;
+    <a href="{{ article.url }}"><{{what}} class="art">{{ article.title }}</{{what}}></a>
     <span class="art-date">{{ article.author }} on {{ article.datetime.astimezone().date() }}</span>
 </div>
 {% endmacro %}
@@ -8,13 +8,13 @@
 {% macro nav(article) %}
 <div class="art-nav">
     {% if article.older -%}
-    <a href="{{ article.older.url }}">older</a>
+    <a href="{{ article.older.url }}">previous article</a>
     {%- else -%}
     <span></span>
     {%- endif -%}
-    <a href="{{ url_for("archive") }}">all</a>
+    <a href="{{ url_for("archive") }}">view archive</a>
     {%- if article.newer %}
-    <a href="{{ article.newer.url }}">newer</a>
+    <a href="{{ article.newer.url }}">next article</a>
     {%- else %}
     <span></span>
     {%- endif %}