RSS Amplifier

Mark Phillips | Product Marketing, Management and Strategy · Dec 9, 2024

Adding full post content to RSS in Hugo

0
Sign in to vote or save

map[name:Mark Phillips] · map[name:Mark Phillips]


262 words, 2 minutes.

Years ago I used to aggregate all my interesting blogs and sites in an RSS reader. RSS seemed to fade away for a long time, and I thought it was dead. But, it seems to be making a resurgence — and this time around, with the contrast of how bad the rest of the internet is becoming, it feels so delightful to use.

Hugo usefully has RSS feeds built in and I’ve long included an RSS version of this site. However, the default template only lists part of the article for reading in an RSS reader.

Whilst perusing Kev Quirk’s blog via NetNewsWire recently, I noticed he has a footer message thanking the reader for looking at the article via RSS.

Kev’s RSS article footer

I thought this was a neat idea — rather than forcing people to click away from the reader to the full site (“to what purpose?”), just let them read the whole article wherever they’re reading from.

With some inspiration from this post, I made a custom rss.xml file in my Hugo template layouts folder and changed the description bit to this:

This expects $authorEmail to be set in params: of your Hugo config (hugo.yml in my case):

Now when reading anything on this blog via RSS, you’ll get the full post right there in your reader.

RSS footer

Read the original on probably.co.uk

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.