mirror of
https://github.com/tiennm99/bonsai.git
synced 2026-09-12 16:18:03 +00:00
Closes #8. Opt-in via `params.rss = true` (off by default). When enabled: - layouts/index.rss.xml renders an RSS 2.0 feed of [[params.links]] at /index.xml — one <item> per link, pubDate = build time - head.html emits <link rel="alternate" type="application/rss+xml"> - Users must remove "RSS" from their disableKinds to let Hugo emit it Channel populated from params.{name,tagline,bio} and site.BaseURL. Item shape: <title> = link title, <link> = link URL, <guid isPermaLink="false"> = bonsai-link-{url}, optional <description>. XML declaration uses safeHTML+printf to defeat Hugo's default escape (otherwise '<?xml ... ?>' becomes '<?xml ... ?>' and breaks parsers). exampleSite enables rss=true to demo the feature; verified output parses as valid XML via Python ElementTree.