]> jfr.im git - irc/freenode/web-7.0.git/commitdiff
templates/index: better article display
authorEd Kellett <redacted>
Tue, 23 Feb 2016 16:56:11 +0000 (16:56 +0000)
committerEd Kellett <redacted>
Tue, 23 Feb 2016 16:56:11 +0000 (16:56 +0000)
templates/index.html

index f131bcbb02a2b83540421c28e9db5f2661571ff7..63bd779a8aabdaa7cef68f661825a060673da81d 100644 (file)
     </div>
 </div>
 <div class="main">
-    {{ get_module("news").articles[-1].render() }}
+    {% with article = get_module("news").articles[-1] %}
+    <p><b class="art"><a href="{{ article.url }}">{{ article.title }}</a></b>&nbsp;
+    <span class="art-date">{{ article.datetime }} by {{ article.author }}</span></p>
+    <p class="art-ingress">{{ article.render() }}</p>
+    {% endwith %}
 </div>
 {% endblock content %}