From d1e5e5168a809aa235d016fdaabd64701455c7db Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Tue, 4 Aug 2020 13:21:36 +0200 Subject: [PATCH] tidy up layout for weather. remove extra entry. --- screenless/bureau/publications/news.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/screenless/bureau/publications/news.html b/screenless/bureau/publications/news.html index f95de1e..1404c99 100644 --- a/screenless/bureau/publications/news.html +++ b/screenless/bureau/publications/news.html @@ -117,7 +117,7 @@ } .weatherday { float: left; - width: 25%; + width: 12.5%; } .weatherperiod img { width: 50%; @@ -192,16 +192,16 @@
Today
% for period in forecast: - % if daycount <= 3: - % if period["day"] != curr_day: - <% - daycount += 1 - curr_day = period["day"] - %> + % if (daycount <= 4) and (period["day"] != curr_day): + <% + daycount += 1 + curr_day = period["day"] + %>
${period["day"]}
- % endif + % endif + % if daycount <= 3:

${period["period"]}