quatuorbellefeuille.com

Content, build scripts and admin scripts for the Bellefeuille Quartet website.
git clone https://git.kevinlegouguec.net/quatuorbellefeuille.com
Log | Files | Refs

commit a96b4464769132403f9cfa72f488efdd778d357e
parent 09438c049bc40c75ba5893e9836801169c9d81e0
Author: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Date:   Tue,  4 Apr 2023 00:06:11 +0200

Fix index generation when there are no next concerts yet

Diffstat:
Mbuild-concerts.py | 2+-
Men/index.html | 4++--
Mhelpers.py | 2+-
Mindex.html | 4++--
4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/build-concerts.py b/build-concerts.py @@ -129,7 +129,7 @@ def print_thumbnails(concerts, imgdir, lang): print('<div id="event-list">') print_thumbnails_section(next_concerts, imgdir, 'next', lang) - print_thumbnails_section(past_concerts, imgdir, 'past', lang) + print_thumbnails_section(list(reversed(past_concerts)), imgdir, 'past', lang) print('</div>') diff --git a/en/index.html b/en/index.html @@ -1,7 +1,7 @@ <main> - <a id="next-concert" href="concerts.html#concert-2023-02-11"> + <a id="next-concert" href="concerts.html#concert-2023-02-12"> <p> - <span id="month">February</span><br><span id="day">11</span> + <span id="month">February</span><br><span id="day">12</span> </p> </a> </main> diff --git a/helpers.py b/helpers.py @@ -153,7 +153,7 @@ def split_concerts(concerts, threshold): cutoff = i break - return reversed(concerts[:cutoff]), concerts[cutoff:] + return concerts[:cutoff], concerts[cutoff:] _TOUCHUPS = ( diff --git a/index.html b/index.html @@ -1,7 +1,7 @@ <main> - <a id="next-concert" href="concerts.html#concert-2023-02-11"> + <a id="next-concert" href="concerts.html#concert-2023-02-12"> <p> - <span id="day">11</span><br><span id="month">février</span> + <span id="day">12</span><br><span id="month">février</span> </p> </a> </main>