Neutral, shared helpers for resolving per-language RSS feed
filenames and emitting the <head> feed-autodiscovery <link> tag.
These helpers live in the shared templates/ zone (rather than inside the
generators/sitemap/ context) because both the aggregator article shell
(aggregator/html/shell.ts) and the page generators
(generators/sitemap/html.ts, generators/news-indexes/per-language.ts,
generators/political-intelligence/html.ts) need them. Keeping them here
avoids an aggregatorโgenerators cross-context import (see
test/unit/cross-context-imports.test.js).
generators/sitemap/rss.ts re-exports both helpers so the sitemap feed
generator keeps a single public surface.
Description
Neutral, shared helpers for resolving per-language RSS feed filenames and emitting the
<head>feed-autodiscovery<link>tag.These helpers live in the shared
templates/zone (rather than inside thegenerators/sitemap/context) because both the aggregator article shell (aggregator/html/shell.ts) and the page generators (generators/sitemap/html.ts,generators/news-indexes/per-language.ts,generators/political-intelligence/html.ts) need them. Keeping them here avoids an aggregatorโgenerators cross-context import (seetest/unit/cross-context-imports.test.js).generators/sitemap/rss.tsre-exports both helpers so the sitemap feed generator keeps a single public surface.