Fix feed item URLs and content
Centralize PROJECT_* in feeds covers the hardcoded title and the empty BASE_URL. The live
output has more problems than constants, all visible in curl https://sveleton.ramilkarimov.me/feed.json.
Current State
feed_urlishttp://sveltekit-prerender/feed.jsonand the Atom<id>ishttp://sveltekit-prerender/feed.xml/— the endpoints serialise the prerender requesturlinstead ofPROJECT_URL- Every item's
id,urland Atom<link>are relative (/todos/.../); feed readers resolve them against nothing summaryandimageare""on every item:page-renderer.svelte.jsreads ametacontext store thatMeta.svelteno longer writes to, so the description and og:image lookup is dead codecontent_htmlcontains Svelte hydration markers (<!--[-->,<!--]-->) and the full Publication chrome (breadcrumbs, author block, CTA) instead of the article body- Breadcrumbs inside
content_htmllink to/src/routes/(demo)/todos/...becausecreateSvelteKitStateMocks()uses the file path as the page URL feed.xmladdsindexminutes to duplicate dates to keep<updated>unique — a workaround for a sort key, not a feed concern
Tasks
- Build all feed URLs from
PROJECT_URL, never from the request - Take
summaryfrommeta.descriptionandimagefrom the resolved cover; delete the meta-store lookup - Render only the article body for
content_html(a body snippet, or stripsection.article-infoandPublicationBottom), and strip hydration comments - Mock the public URL, not the file path, in the renderer state
- Validate the output with a JSON Feed and Atom validator in CI
Read next
