Improve index page for yearly news archive
Hans Fredrik Nordhaug <[email protected]>
| Newsgroups | gmane.linux.debian.devel.www |
|---|---|
| Message-ID | <CABGD+WPELT749Zd5TZSpSkTnuP5eTxEPmgXqMRDTK=AOfU5c7Q@mail.gmail.com> |
Hi! The current note (with links) - see english/News/2020/index.wml for an example - makes complete sense when the archive is for the current year. However, when the same page is no longer the current year, it feels awkward. I have attached a patch for 2020 (with pseudo code) which I think works much better. Could we try to do something like that when the 2021 page is created? Regards, Hans PS! For Norwegian (for 2015 to 2020) I have used the (not current year) note that I suggest in the patch.
news-yearly-archive.patch
(text/x-patch, 1 KB)
diff --git a/english/News/2020/index.wml b/english/News/2020/index.wml
index f2c0b97820f..3b29672eedb 100644
--- a/english/News/2020/index.wml
+++ b/english/News/2020/index.wml
@@ -4,11 +4,20 @@
<p><:= get_recent_list ('.', '0', '$(ENGLISHDIR)/News/2020', '',
'\d+\w*') :></p>
-<p>Note: you can get the latest Debian news by
+<p>
+IF 2020 IS CURRENT YEAR
+Note: you can get the latest Debian news by
subscribing to or browsing the
archives for our
-<a
-href="https://lists.debian.org/debian-announce/debian-announce-2020/">\
+<a href="https://lists.debian.org/debian-announce/">\
<strong>debian-announce</strong></a> and
<a href="https://lists.debian.org/debian-news/">\
-<strong>debian-news</strong></a> mailing lists.</p>
+<strong>debian-news</strong></a> mailing lists.
+ELSE
+Note: you can also browse the archives from 2020 for our
+<a href="https://lists.debian.org/debian-announce/2020/">\
+<strong>debian-announce</strong></a> and
+<a href="https://lists.debian.org/debian-news/2020/">\
+<strong>debian-news</strong></a> mailing lists.
+ENDIF
+</p>