From bea631d3f5e7d533185187e284cd392da73de325 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Tue, 25 Apr 2017 00:09:35 +0900 Subject: Changes to add recent news to the Recent Posts Theme for the front page --- templates/themes/recent/recent.html | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'templates/themes/recent/recent.html') diff --git a/templates/themes/recent/recent.html b/templates/themes/recent/recent.html index c7802aaf..7ae8f5c2 100644 --- a/templates/themes/recent/recent.html +++ b/templates/themes/recent/recent.html @@ -33,7 +33,24 @@

CYBERPUNK IS DUCK

Pour out the Soykaf, lurk, and read the rules before posting!
mascot

- +
+

Latest News

+ {% if recent_news|count == 0 %} +

(No news to show.)

+ {% else %} + {% for entry in recent_news %} +

+ {% if entry.subject %} + {{ entry.subject }} + {% else %} + no subject + {% endif %} + — by {{ entry.name }} at {{ entry.time|date(config.post_date, config.timezone) }} +

+

{{ entry.body }}

+ {% endfor %} + {% endif %} +

Recent Images

@@ -59,6 +76,7 @@ {% endfor %} +

Stats

-- cgit v1.3