Files
bonsai/exampleSite
tiennm99 1f5b9cb95e feat(theme): optional RSS feed of params.links
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 '&lt;?xml ... ?&gt;' and breaks parsers).

exampleSite enables rss=true to demo the feature; verified output
parses as valid XML via Python ElementTree.
2026-05-10 02:59:03 +07:00
..