]> jfr.im git - irc/freenode/web-7.0.git/commitdiff
Fix article list
authorEd Kellett <redacted>
Tue, 23 Feb 2016 22:14:07 +0000 (22:14 +0000)
committerEd Kellett <redacted>
Tue, 23 Feb 2016 22:14:07 +0000 (22:14 +0000)
config.yml
templates/artlist.html

index 1530c807ec762672e28b0723934c6f3928121d7d..cc861622e2ccbc82f66d406e2ed5b02c65e60270 100644 (file)
@@ -6,6 +6,7 @@ modules:
   - name: 'null'
     map:
       index: index.html
+      archive: artlist.html
   - name: 'blog'
     id: 'news'
     source: news
index 78e79f439d556bcbaee4a1c328460d867d242465..bb11e983d2767586a32c1e637f6e3ad1ba03c4b8 100644 (file)
@@ -1,9 +1,11 @@
 {% extends "base.html" %}
+{% set title = "archive" %}
 {% block content %}
-{% with articles = get_module("news").articles %}
+{% for article in get_module("news").articles %}
 <div class="art">
     <p><a href="{{ article.url }}"><b class="art">{{ article.title }}</b></a>&nbsp;
     <span class="art-date">{{ article.datetime }} by {{ article.author }}</span></p>
-    <p class="art-link"><a href="{{ link }}">Read More</a></p>
+    <p class="art-link"><a href="{{ article.url }}">Read More</a></p>
 </div>
+{% endfor %}
 {% endblock content %}