Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Additional Resources
diff --git a/political-intelligence_ar.html b/political-intelligence_ar.html index d99fac626..8087c6106 100644 --- a/political-intelligence_ar.html +++ b/political-intelligence_ar.html @@ -66,7 +66,7 @@ - + @@ -247,6 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
موارد إضافية
diff --git a/political-intelligence_da.html b/political-intelligence_da.html index 95acc7df4..a89600291 100644 --- a/political-intelligence_da.html +++ b/political-intelligence_da.html @@ -66,7 +66,7 @@ - + @@ -247,6 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Yderligere ressourcer
diff --git a/political-intelligence_de.html b/political-intelligence_de.html index ad288b09c..2905de394 100644 --- a/political-intelligence_de.html +++ b/political-intelligence_de.html @@ -66,7 +66,7 @@ - + @@ -247,6 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Weitere Ressourcen
diff --git a/political-intelligence_es.html b/political-intelligence_es.html index a35a0be38..eb7d15502 100644 --- a/political-intelligence_es.html +++ b/political-intelligence_es.html @@ -66,7 +66,7 @@ - + @@ -247,6 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Recursos adicionales
diff --git a/political-intelligence_fi.html b/political-intelligence_fi.html index d69699819..1ca111c2f 100644 --- a/political-intelligence_fi.html +++ b/political-intelligence_fi.html @@ -66,7 +66,7 @@ - + @@ -247,6 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Lisäresurssit
diff --git a/political-intelligence_fr.html b/political-intelligence_fr.html index c82f59eed..511289921 100644 --- a/political-intelligence_fr.html +++ b/political-intelligence_fr.html @@ -66,7 +66,7 @@ - + @@ -247,6 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Ressources supplémentaires
diff --git a/political-intelligence_he.html b/political-intelligence_he.html index 49959bdc7..e45d53ce8 100644 --- a/political-intelligence_he.html +++ b/political-intelligence_he.html @@ -66,7 +66,7 @@ - + @@ -247,6 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
משאבים נוספים
diff --git a/political-intelligence_ja.html b/political-intelligence_ja.html index 3f8dc4953..e8e82565b 100644 --- a/political-intelligence_ja.html +++ b/political-intelligence_ja.html @@ -66,7 +66,7 @@ - + @@ -247,6 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
追加リソース
diff --git a/political-intelligence_ko.html b/political-intelligence_ko.html index b329e1f4f..9aed0f8d9 100644 --- a/political-intelligence_ko.html +++ b/political-intelligence_ko.html @@ -66,7 +66,7 @@ - + @@ -247,6 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
추가 리소스
diff --git a/political-intelligence_nl.html b/political-intelligence_nl.html index 90aa83688..715845438 100644 --- a/political-intelligence_nl.html +++ b/political-intelligence_nl.html @@ -66,7 +66,7 @@ - + @@ -247,6 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Aanvullende bronnen
diff --git a/political-intelligence_no.html b/political-intelligence_no.html index 8e8c59f95..6fd2a9668 100644 --- a/political-intelligence_no.html +++ b/political-intelligence_no.html @@ -66,7 +66,7 @@ - + @@ -247,6 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Ytterligere ressurser
diff --git a/political-intelligence_sv.html b/political-intelligence_sv.html index 8f6fff14a..13942ea55 100644 --- a/political-intelligence_sv.html +++ b/political-intelligence_sv.html @@ -66,7 +66,7 @@ - + @@ -247,6 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Ytterligare resurser
diff --git a/political-intelligence_zh.html b/political-intelligence_zh.html index c193c30d4..a7a1969cf 100644 --- a/political-intelligence_zh.html +++ b/political-intelligence_zh.html @@ -66,7 +66,7 @@ - + @@ -247,6 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
附加资源
diff --git a/scripts/generate-news-indexes/template.ts b/scripts/generate-news-indexes/template.ts index 4b4fd2352..e01a467cf 100644 --- a/scripts/generate-news-indexes/template.ts +++ b/scripts/generate-news-indexes/template.ts @@ -172,6 +172,11 @@ export function generateIndexHTML( jsonLd, extraHead, extraStyle, + // Opt back into the legacy colour-coded `.news-page .article-card` palette + // (≈300 LOC starting at `body.news-page` in `styles.css`). Without this + // class the `rm-article-body` chrome bypassed the news-index visual + // language entirely (see issue #2012-regression). + bodyClass: 'news-page', }); // News-index body — preserves the rich filter bar, articles grid, JS, @@ -327,11 +332,13 @@ ${needsLanguageNotice ? generateLanguageNotice(langKey) : ''} availableDisplay = \`\${AVAILABLE_IN_TEXT}: \${availableBadges}
\`; } + const primaryTopic = (article.topics && article.topics.length > 0) ? article.topics[0] : ''; + return \` -Additional Resources
diff --git a/political-intelligence_ar.html b/political-intelligence_ar.html index 8087c6106..b889c5d63 100644 --- a/political-intelligence_ar.html +++ b/political-intelligence_ar.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
موارد إضافية
diff --git a/political-intelligence_da.html b/political-intelligence_da.html index a89600291..49ecd27b7 100644 --- a/political-intelligence_da.html +++ b/political-intelligence_da.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Yderligere ressourcer
diff --git a/political-intelligence_de.html b/political-intelligence_de.html index 2905de394..eedcbf684 100644 --- a/political-intelligence_de.html +++ b/political-intelligence_de.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Weitere Ressourcen
diff --git a/political-intelligence_es.html b/political-intelligence_es.html index eb7d15502..f6bf31b0f 100644 --- a/political-intelligence_es.html +++ b/political-intelligence_es.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Recursos adicionales
diff --git a/political-intelligence_fi.html b/political-intelligence_fi.html index 1ca111c2f..8b42c7d85 100644 --- a/political-intelligence_fi.html +++ b/political-intelligence_fi.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Lisäresurssit
diff --git a/political-intelligence_fr.html b/political-intelligence_fr.html index 511289921..5cff709d1 100644 --- a/political-intelligence_fr.html +++ b/political-intelligence_fr.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Ressources supplémentaires
diff --git a/political-intelligence_he.html b/political-intelligence_he.html index e45d53ce8..5bcc221f6 100644 --- a/political-intelligence_he.html +++ b/political-intelligence_he.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
משאבים נוספים
diff --git a/political-intelligence_ja.html b/political-intelligence_ja.html index e8e82565b..d2f5320c6 100644 --- a/political-intelligence_ja.html +++ b/political-intelligence_ja.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
追加リソース
diff --git a/political-intelligence_ko.html b/political-intelligence_ko.html index 9aed0f8d9..0c5e835e0 100644 --- a/political-intelligence_ko.html +++ b/political-intelligence_ko.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
추가 리소스
diff --git a/political-intelligence_nl.html b/political-intelligence_nl.html index 715845438..75284074e 100644 --- a/political-intelligence_nl.html +++ b/political-intelligence_nl.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Aanvullende bronnen
diff --git a/political-intelligence_no.html b/political-intelligence_no.html index 6fd2a9668..dd5730ca2 100644 --- a/political-intelligence_no.html +++ b/political-intelligence_no.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Ytterligere ressurser
diff --git a/political-intelligence_sv.html b/political-intelligence_sv.html index 13942ea55..e8e35316e 100644 --- a/political-intelligence_sv.html +++ b/political-intelligence_sv.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Ytterligare resurser
diff --git a/political-intelligence_zh.html b/political-intelligence_zh.html index a7a1969cf..c7b15c101 100644 --- a/political-intelligence_zh.html +++ b/political-intelligence_zh.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
附加资源
diff --git a/scripts/render-lib/chrome.ts b/scripts/render-lib/chrome.ts index 0f500efeb..8b16709cf 100644 --- a/scripts/render-lib/chrome.ts +++ b/scripts/render-lib/chrome.ts @@ -363,12 +363,15 @@ export function buildChrome(opts: ChromeOptions): SiteChrome { .map((l) => { const lm = LANGUAGE_META[l]; const isCurrent = l === opts.lang; - const href = isCurrent - ? '#' - : `${prefix}${opts.hreflangAlternates?.[l] ?? fallbackAltHref(l)}`; - const activeAttr = isCurrent ? ' aria-current="true"' : ''; - const activeClass = isCurrent ? ' active' : ''; - return ` ${lm.flag} ${escapeHtml(lm.nativeName)}`; + if (isCurrent) { + // Render the current language as a non-interactive `` rather + // than an `` so we avoid (a) a stray fragment navigation + // that scrolls to the page top and (b) advertising a `hreflang` + // whose destination doesn't actually point at the alternate. + return ` ${lm.flag} ${escapeHtml(lm.nativeName)}`; + } + const href = `${prefix}${opts.hreflangAlternates?.[l] ?? fallbackAltHref(l)}`; + return ` ${lm.flag} ${escapeHtml(lm.nativeName)}`; }) .join('\n'); @@ -377,7 +380,7 @@ export function buildChrome(opts: ChromeOptions): SiteChrome {Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Additional Resources
diff --git a/political-intelligence_ar.html b/political-intelligence_ar.html index b889c5d63..0d9c5bf79 100644 --- a/political-intelligence_ar.html +++ b/political-intelligence_ar.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
موارد إضافية
diff --git a/political-intelligence_da.html b/political-intelligence_da.html index 49ecd27b7..bdbe5847e 100644 --- a/political-intelligence_da.html +++ b/political-intelligence_da.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Yderligere ressourcer
diff --git a/political-intelligence_de.html b/political-intelligence_de.html index eedcbf684..646071d92 100644 --- a/political-intelligence_de.html +++ b/political-intelligence_de.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Weitere Ressourcen
diff --git a/political-intelligence_es.html b/political-intelligence_es.html index f6bf31b0f..5830e4fe9 100644 --- a/political-intelligence_es.html +++ b/political-intelligence_es.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Recursos adicionales
diff --git a/political-intelligence_fi.html b/political-intelligence_fi.html index 8b42c7d85..afb60a052 100644 --- a/political-intelligence_fi.html +++ b/political-intelligence_fi.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Lisäresurssit
diff --git a/political-intelligence_fr.html b/political-intelligence_fr.html index 5cff709d1..28f1160cb 100644 --- a/political-intelligence_fr.html +++ b/political-intelligence_fr.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Ressources supplémentaires
diff --git a/political-intelligence_he.html b/political-intelligence_he.html index 5bcc221f6..791d75a89 100644 --- a/political-intelligence_he.html +++ b/political-intelligence_he.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
משאבים נוספים
diff --git a/political-intelligence_ja.html b/political-intelligence_ja.html index d2f5320c6..85d2f7c77 100644 --- a/political-intelligence_ja.html +++ b/political-intelligence_ja.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
追加リソース
diff --git a/political-intelligence_ko.html b/political-intelligence_ko.html index 0c5e835e0..cb2fbe112 100644 --- a/political-intelligence_ko.html +++ b/political-intelligence_ko.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
추가 리소스
diff --git a/political-intelligence_nl.html b/political-intelligence_nl.html index 75284074e..e8e16ab65 100644 --- a/political-intelligence_nl.html +++ b/political-intelligence_nl.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Aanvullende bronnen
diff --git a/political-intelligence_no.html b/political-intelligence_no.html index dd5730ca2..bd44ca96f 100644 --- a/political-intelligence_no.html +++ b/political-intelligence_no.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Ytterligere ressurser
diff --git a/political-intelligence_sv.html b/political-intelligence_sv.html index e8e35316e..e10d60dc8 100644 --- a/political-intelligence_sv.html +++ b/political-intelligence_sv.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Ytterligare resurser
diff --git a/political-intelligence_zh.html b/political-intelligence_zh.html index c7b15c101..99cdb03f9 100644 --- a/political-intelligence_zh.html +++ b/political-intelligence_zh.html @@ -66,7 +66,7 @@ - + @@ -247,7 +247,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
附加资源
diff --git a/scripts/render-lib/chrome.ts b/scripts/render-lib/chrome.ts index 8b16709cf..f2c58540a 100644 --- a/scripts/render-lib/chrome.ts +++ b/scripts/render-lib/chrome.ts @@ -368,7 +368,7 @@ export function buildChrome(opts: ChromeOptions): SiteChrome { // than an `` so we avoid (a) a stray fragment navigation // that scrolls to the page top and (b) advertising a `hreflang` // whose destination doesn't actually point at the alternate. - return ` ${lm.flag} ${escapeHtml(lm.nativeName)}`; + return ` ${lm.flag} ${escapeHtml(lm.nativeName)}`; } const href = `${prefix}${opts.hreflangAlternates?.[l] ?? fallbackAltHref(l)}`; return ` ${lm.flag} ${escapeHtml(lm.nativeName)}`; @@ -380,7 +380,7 @@ export function buildChrome(opts: ChromeOptions): SiteChrome {Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Additional Resources
diff --git a/political-intelligence_ar.html b/political-intelligence_ar.html index 0d9c5bf79..fdb0bb52f 100644 --- a/political-intelligence_ar.html +++ b/political-intelligence_ar.html @@ -66,7 +66,7 @@ - + @@ -7624,7 +7624,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
موارد إضافية
diff --git a/political-intelligence_da.html b/political-intelligence_da.html index bdbe5847e..f03ff2b02 100644 --- a/political-intelligence_da.html +++ b/political-intelligence_da.html @@ -66,7 +66,7 @@ - + @@ -7624,7 +7624,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Yderligere ressourcer
diff --git a/political-intelligence_de.html b/political-intelligence_de.html index 646071d92..aa52797cc 100644 --- a/political-intelligence_de.html +++ b/political-intelligence_de.html @@ -66,7 +66,7 @@ - + @@ -7624,7 +7624,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Weitere Ressourcen
diff --git a/political-intelligence_es.html b/political-intelligence_es.html index 5830e4fe9..fc2f1306e 100644 --- a/political-intelligence_es.html +++ b/political-intelligence_es.html @@ -66,7 +66,7 @@ - + @@ -7624,7 +7624,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Recursos adicionales
diff --git a/political-intelligence_fi.html b/political-intelligence_fi.html index afb60a052..a6912ea9f 100644 --- a/political-intelligence_fi.html +++ b/political-intelligence_fi.html @@ -66,7 +66,7 @@ - + @@ -7624,7 +7624,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Lisäresurssit
diff --git a/political-intelligence_fr.html b/political-intelligence_fr.html index 28f1160cb..0757b1299 100644 --- a/political-intelligence_fr.html +++ b/political-intelligence_fr.html @@ -66,7 +66,7 @@ - + @@ -7624,7 +7624,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Ressources supplémentaires
diff --git a/political-intelligence_he.html b/political-intelligence_he.html index 791d75a89..3119e75bc 100644 --- a/political-intelligence_he.html +++ b/political-intelligence_he.html @@ -66,7 +66,7 @@ - + @@ -7624,7 +7624,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
משאבים נוספים
diff --git a/political-intelligence_ja.html b/political-intelligence_ja.html index 85d2f7c77..51b4fe2fd 100644 --- a/political-intelligence_ja.html +++ b/political-intelligence_ja.html @@ -66,7 +66,7 @@ - + @@ -7624,7 +7624,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
追加リソース
diff --git a/political-intelligence_ko.html b/political-intelligence_ko.html index cb2fbe112..443d4e013 100644 --- a/political-intelligence_ko.html +++ b/political-intelligence_ko.html @@ -66,7 +66,7 @@ - + @@ -7624,7 +7624,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
추가 리소스
diff --git a/political-intelligence_nl.html b/political-intelligence_nl.html index e8e16ab65..d277816fc 100644 --- a/political-intelligence_nl.html +++ b/political-intelligence_nl.html @@ -66,7 +66,7 @@ - + @@ -7624,7 +7624,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Aanvullende bronnen
diff --git a/political-intelligence_no.html b/political-intelligence_no.html index bd44ca96f..95e6525d4 100644 --- a/political-intelligence_no.html +++ b/political-intelligence_no.html @@ -66,7 +66,7 @@ - + @@ -7624,7 +7624,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Ytterligere ressurser
diff --git a/political-intelligence_sv.html b/political-intelligence_sv.html index e10d60dc8..151ca8533 100644 --- a/political-intelligence_sv.html +++ b/political-intelligence_sv.html @@ -66,7 +66,7 @@ - + @@ -7624,7 +7624,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated:
Ytterligare resurser
diff --git a/political-intelligence_zh.html b/political-intelligence_zh.html index 99cdb03f9..9bd0b39e2 100644 --- a/political-intelligence_zh.html +++ b/political-intelligence_zh.html @@ -66,7 +66,7 @@ - + @@ -7624,7 +7624,7 @@Riksdagsmonitor
· Built by Hack23 AB -Last updated:
+Last updated: