Michael-F-Bryan / adventures.michaelfbryan.com

A simple blog for documenting my thoughts and adventures
http://adventures.michaelfbryan.com/
15 stars 3 forks source link

RSS/Atom feed #31

Closed hannobraun closed 3 years ago

hannobraun commented 3 years ago

Would it be possible to add an RSS/Atom feed to the website? I'm not familiar with Hugo, or I would look into it myself. I'm hoping it's an easy addition for someone who's already familiar.

Michael-F-Bryan commented 3 years ago

The website should already have RSS wired up (http://adventures.michaelfbryan.com/index.xml), but I don't think the theme I'm using actually displays a clickable link for it.

It also doesn't help that I haven't published anything since July.

hannobraun commented 3 years ago

Nice, that works! I think I tried every combination of [/posts]/{rss.xml|atom.xml}, so I thought there wasn't one :-)

Tip: You can add something like the following snippet to your HTML, then people should be able to just paste the page URL into their RSS reader, instead of having to find the RSS link manually: https://github.com/hannobraun/madeby.hannobraun.de/blob/9244f63d8c9763e7bb5ff923f7cc06cbf77cba5f/templates/extend/base.html#L16

I'm leaving this open, in case you want to track any of the further improvements mentioned here, but as far as I'm concerned, the problem is solved. Thanks!

Michael-F-Bryan commented 3 years ago

It looks like Hugo was already adding <link rel=alternate type=application/rss+xml href=https://adventures.michaelfbryan.com/index.xml title=Michael-F-Bryan> to the website's <head> tag. Forcing people to view the page source and find the correct tag so they can copy a link isn't overly satisfactory, though.

I did a bit more digging and it was really easy to add an RSS icon to the front page (see 7cc44f1). I think that should round out the story around RSS.

hannobraun commented 3 years ago

I could have sworn I tried pasting the page URL into my RSS, but I probably mixed something up. In any case, thanks for the changes!