From d33f6c34e0396061be6498386caa2e06be5de833 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Tue, 7 Jul 2020 20:53:18 +0200 Subject: [PATCH] tidy up weather style for news --- screenless/bureau/publications/news.html | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/screenless/bureau/publications/news.html b/screenless/bureau/publications/news.html index 4e69e39..e321513 100644 --- a/screenless/bureau/publications/news.html +++ b/screenless/bureau/publications/news.html @@ -7,7 +7,7 @@ @media print { @page { size: A4; - margin: 0.5cm 1cm 1cm 1cm; + margin: 0.5cm 1cm 2cm 1cm; @bottom-left { content: counter(page); font-family: "Cormorant SC"; @@ -34,7 +34,7 @@ font-size: 100%; } body { - font-family: "Cormorant"; + font-family: "Cormorant Garamond"; font-size: 14px; line-height: 1; } @@ -192,19 +192,18 @@
Today
% for period in forecast: - % if daycount <= 4: + % if daycount <= 3: % if period["day"] != curr_day: + <% + daycount += 1 + curr_day = period["day"] + %>
${period["day"]}
% endif - <% - if forecast[loop.index]["day"] != curr_day: - daycount += 1 - curr_day = forecast[loop.index]["day"] - %>
- +

${period["period"]}

${period["mintemp"]} – ${period["maxtemp"]}