diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2023-04-04 00:06:11 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2023-04-04 00:06:11 +0200 |
| commit | a96b4464769132403f9cfa72f488efdd778d357e (patch) | |
| tree | 3dd0b2a0897b7628c6a64307fcd2a90f56a13e6b | |
| parent | 09438c049bc40c75ba5893e9836801169c9d81e0 (diff) | |
| download | quatuorbellefeuille.com-a96b4464769132403f9cfa72f488efdd778d357e.tar.xz | |
Fix index generation when there are no next concerts yet
| -rwxr-xr-x | build-concerts.py | 2 | ||||
| -rw-r--r-- | en/index.html | 4 | ||||
| -rw-r--r-- | helpers.py | 2 | ||||
| -rw-r--r-- | index.html | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/build-concerts.py b/build-concerts.py index 2290a1f..7348806 100755 --- 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 index 5dedf8a..8548f3b 100644 --- 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> @@ -153,7 +153,7 @@ def split_concerts(concerts, threshold): cutoff = i break - return reversed(concerts[:cutoff]), concerts[cutoff:] + return concerts[:cutoff], concerts[cutoff:] _TOUCHUPS = ( @@ -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> |
