RSS feed
Every Gophenberg site publishes an RSS feed of its posts, served by a built-in plugin.
The address
Section titled “The address”https://example.com/api/plugins/feed/rss.xmlIt needs no login. That is the address to hand to feed readers, or to a newsletter service that syndicates by feed.
What it contains
Section titled “What it contains”The newest published posts, most recent first. Each item carries the post’s title, its address on your site, its publication date, and the full post content, not the excerpt.
Item links are built from the address the request arrived on, so
they only come out as https when
GOPHENBERG_TRUSTED_PROXIES
is set correctly for your proxy.
Settings
Section titled “Settings”| Variable | Default | Effect |
|---|---|---|
GOPHENBERG_FEED_TITLE | Gophenberg | The channel title feed readers display |
GOPHENBERG_FEED_ITEMS | 20 | How many posts the feed carries |
GOPHENBERG_FEED_ITEMS must be a positive whole number. Anything
else stops the server at startup, and makes check, migrate and
seed -yes fail too. With banana as the value, check prints:
gophenberg: plugin feed: GOPHENBERG_FEED_ITEMS: must be a whole number, got "banana"The command listing still works. It shows the feed under
Not loaded, with the same reason. Run
gophenberg check before a rollout to
catch a bad value before the server does.