kaushalmodi / hugo-atom-feed

Hugo theme component for ATOM feed custom Output Format
GNU General Public License v3.0
41 stars 13 forks source link

About recommending the "atom+xml" Content-Type #17

Closed kaushalmodi closed 5 years ago

kaushalmodi commented 5 years ago

@jpawlowski Btw, I now force the Content Type to be "application/atom+xml" on Netlify, but now opening https://scripter.co/atom.xml even on the latest Firefox prompts me to download it instead of rendering it nicely in the browser.. any hints on how to avoid that download prompt?

Originally posted by @kaushalmodi in https://github.com/kaushalmodi/hugo-atom-feed/pull/11#issuecomment-519098546

kaushalmodi commented 5 years ago

Bummer! After setting the content type, I can no longer validate that Atom feed using the w3c validator! https://validator.w3.org/check?uri=https%3A%2F%2Fscripter.co%2Fatom.xml

image


Update: That was a false alarm, I was setting the Netlify Content-Type incorrectly.

kaushalmodi commented 5 years ago

Still trying to figure out how to make Firefox render the atom.xml nicely.. finding stuff like https://support.mozilla.org/en-US/questions/1193967 where it says that a "doctype" needs to be added.. now figuring out how to do that.

kaushalmodi commented 5 years ago

oh well, this looks like a bad rabbit hole: https://www.w3.org/TR/xml-stylesheet/

Anyhow, using "atom+xml" for content type looks right.. so closing this.

kaushalmodi commented 5 years ago

Related: https://github.com/Sytten/PrettyXML/issues/1