Closed kaushalmodi closed 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
Update: That was a false alarm, I was setting the Netlify Content-Type incorrectly.
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.
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.
@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