Elektrine lite

← Feed

@fluffy@plush.city

Post #1435195

2026-03-08 01:22 UTC

@freebliss Oh also is there a way to inject added HTML into the page output? Being able to add a tag to the page header is important to make it so that players/receivers know whether and where to look for the feed URL in the first place. Or would it just be best to have the tag be injected by the feed builder and then make sure that the thing always gets run on every page build?

Replies (1)

  • @freebliss@post.lurk.org 2026-03-08 20:32

    @fluffy For a site-wide feed the https://simonrepp.com/faircamp/manual/catalog-catalog-eno.html#site_metadata and https://simonrepp.com/faircamp/manual/catalog-catalog-eno.html#site_assets options will do the trick. You can then basically run "faircamp --export-tree tree.json", generate the feed from the json and write it somewhere, and then do another regular build (both builds reference the feed file from site_assets/site_metadata, but it's up-to-date only for the second build that actually renders the page). Alternatively there will also be the possibility to do "faircamp --render-tree tree.json" as the second step, and the site_asset stuff can be injected into the tree.json before running that. :)

    Open ##1435196