Help : Self-Hosting RSS Feed for my blog (pls)
Oh technomages of c/selfhosted, I come seeking your help once more because anywhere I look there's people trying to sell me on their service, something-something PODCASTS, or RSS for windows and all that, my brain cannot anymore.
I've got a blog I'm serving with nginx, and I would like to implement some sort of RSS feed. I'm pretty much new to the whole thing, but it was recommended to me. I did a bit of research and now I know those are like xml files that you subscribe to.
So, I wanted to know: In your experience, what is the best way to go about this? Do I have to make them myself by hand and put them in an /rss/ directory in the root of my blog? How do people subscribe to them? Got any resources?
I wouldn't mind writing them by hand actually, my whole website is hand-made, gluten free and organic. (maybe not the last one).
Thanks in advance ❤
like this
abeorch
in reply to KazuchijouNo • •Selfhosted reshared this.
Rikudou_Sage
in reply to abeorch • • •abeorch
in reply to Rikudou_Sage • •Selfhosted reshared this.
just_another_person
in reply to KazuchijouNo • • •A_norny_mousse
in reply to just_another_person • • •This is the important question. On my blog software It's just one short page written in the blog's templating language, very easy to create from scratch.
If the blog is a collection of plain HTML pages, you'll somehow need to collect the pertinent info first (e.g. the ten newest pages, their titles, a short summary).
486
in reply to KazuchijouNo • • •Subscribing to an RSS feed really is nothing more than telling your RSS client about the URL to that RSS XML file. The RSS client then regularily checks the URL for changes.
If your site is hand-made as you say, you would have to manually create and update the RSS file also. This is quite a nuisance, not only because it is XML, but also because every feed entry needs its own unique UUID, which you need to create. Perhaps you could create a script that does it for you. Static site generators are usually able to automatically create an RSS feed for you.
prof
in reply to 486 • • •like this
fireshell likes this.
gsquirrel
in reply to KazuchijouNo • • •Creating an RSS feed by hand is no harder than creating HTML pages - it's just an XML file, basically.
This page has some decent advice to get started with:
lmnt.me/blog/how-to-make-a-dam…
How to Make a Damn Website
lmnt.me486
in reply to gsquirrel • • •exu
in reply to 486 • • •Per the RSS specification the
guid
field is optional.And if you do want to provide it, any string works. So just count up from 1, use the title, current date or whatever for that field.
RSS 2.0 Specification (Current)
www.rssboard.orglike this
TheFederatedPipe likes this.
486
in reply to exu • • •arjache
in reply to 486 • • •akademy
in reply to 486 • • •Strit
in reply to KazuchijouNo • • •Don't most blog software provide rss feeds?
I know Ghost does, by just adding /rss to the link in question. So you can link to the whole blog, specific tags or even specific posts this way.
Rikudou_Sage
in reply to KazuchijouNo • • •Xanza
in reply to KazuchijouNo • • •RSS feeds are static files with formatted XML list items. When a feed is updated to include a new XML list item, the reader application notifies users who are subscribed that there's been a change. There are actually no moving parts to RSS feeds, which is what makes them so popular. RSS feed applications simply loads an XML feed and counts the number of XML objects. When the application checks again, if there are new objects, then the feed has been updated and you get your little notification.
That's it. It's a static file (like HTML), and it works like magic. You don't need any software or libraries to create an RSS feed over and above being able to serve static XML.
So unless you're updating your feed several times per day, I would just do it by hand. Maybe write a little helper script to scratch out the formatted XML based on input.
You can, but it's really not necessary. If you check around github you can find a ton of projects that help you create RSS feeds.
GitHub - xordspar0/makerss: Make an RSS feed out of arbitrary articles on the Internet
GitHub