Hugo: Hugo should generate an Atom feed and an RSS feed.

Created on 16 May 2017  路  9Comments  路  Source: gohugoio/hugo

Now that we have support for custom output formats, I think it's time to fix the problem of Hugo generating a mixture of RSS and Atom in its feed.

I would suggest generating a pure RSS feed and a pure Atom feed, and making the existing default RSS feed a pure RSS feed going forward. That said, my main concern is having a proper Atom feed.

I've got an Atom feed template I'm using which I'm happy to contribute, but I'm no expert on templates or Hugo internals so it might be better if someone else cleans it up, removes the Atom from the RSS template, and incorporates it into the internal defaults.

Enhancement Keep

Most helpful comment

It's better to choose one not both. I would like to see RSS 2.0 dropped and Atom made the default. Here's a comparison of RSS and Atom showing some of the key differences.

Other reasons to Atom by default:

  • It's used by the Jekyll Feed gem and using it will aid content migrations
  • Multiple enclosures are supported
  • Atom entry elements can exist individually on their own
  • Atom has an IANA registered MIME
  • Support for author with out Dublin Core namespace
  • It's a standard built to fix the issues of RSS 2.0
  • It supports more encoding types
  • Unlike JSON Feed Atom an IETF _standard_

All 9 comments

Related: #3487

It's better to choose one not both. I would like to see RSS 2.0 dropped and Atom made the default. Here's a comparison of RSS and Atom showing some of the key differences.

Other reasons to Atom by default:

  • It's used by the Jekyll Feed gem and using it will aid content migrations
  • Multiple enclosures are supported
  • Atom entry elements can exist individually on their own
  • Atom has an IANA registered MIME
  • Support for author with out Dublin Core namespace
  • It's a standard built to fix the issues of RSS 2.0
  • It supports more encoding types
  • Unlike JSON Feed Atom an IETF _standard_

A new "feed" is Output Format + Media Type + Template. I would love it if this could have lived outside of Hugo core.

(I personally provide only Atom, and if it was up to me I'd rip out the RSS code from Hugo and support only Atom by default, but I was choosing to avoid controversy in the request.)

I totally agree that if Hugo is to include support for something it should be Atom. RSS is outdated and limited for the reasons the others have stated above.

For those looking to add Atom support here's some info shaping up: https://github.com/comfusion/after-dark/issues/32#issuecomment-312515542. Hugo makes it very easy to disable RSS, which is a blessing and very simple giving the IMHO stellar design of Output Formats. 馃槏

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

A kind person created a theme with Atom feeds integrated and submitted it to the theme gallery. Perhaps once it's battle tested, or if we see a lot of themes starting to incorporate it, we can make the case to move it into the Hugo core if it makes sense.

What we need in that case is something we can add cleanly to existing themes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VoidingWarranties picture VoidingWarranties  路  3Comments

bep picture bep  路  3Comments

marekr picture marekr  路  3Comments

chrissparksnj picture chrissparksnj  路  3Comments

artelse picture artelse  路  3Comments