From 4f466a4fefb1ea97b37bd2d11c03d50871b5b002 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 16 May 2022 15:36:16 +0200 Subject: Update media type for atom --- exampleSite/config.toml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'exampleSite') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index b0e5b62..a8e3eee 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -16,6 +16,7 @@ disableKinds = ['RSS'] # section = [ "HTML", "Atom" ] home = [ 'HTML', 'Atom', 'humanstxt' ] +# For more see: https://gohugo.io/templates/output-formats/ [outputFormats.humanstxt] mediaType = 'text/plain' baseName = 'humans' @@ -29,8 +30,15 @@ disableKinds = ['RSS'] # For more see: https://validator.w3.org/feed/docs/atom.html#whatIsAtom [outputFormats.Atom] name = 'Atom' - mediaType = 'application/atom+xml' - # generated file = . = feeds/feed.atom.xml + # The correct header Content-Type header for an Atom feed is + # application/atom+xml. However, Chromium does not handle it + # correctly (see https://code.google.com/p/chromium/issues/detail?id=104358). + # + # The most compatible header is text/xml;charset=UTF-8, which + # will cause the feed to be parsed correctly by most clients. + # Note that you should be encoding your feed in UTF-8. + mediaType = 'text/xml' + # generated file = . = feeds/feed.atom.xml baseName = 'feeds/feed.atom' rel = 'alternate' isPlainText = false @@ -39,7 +47,7 @@ disableKinds = ['RSS'] permalinkable = false [mediaTypes] - [mediaTypes.'application/atom+xml'] + [mediaTypes.'text/xml'] suffixes = ['xml'] [author] @@ -83,6 +91,7 @@ disableKinds = ['RSS'] svgicon = '' # A single SVG icon with a light/dark version for modern browsers apple_touch_icon = '' # 180×180 PNG image for Apple devices webmanifest = '' # Web app manifest with 192×192 and 512×512 PNG icons for modern browsers + logo = '/img/open-graph-logo.png' # Logo image, relative to ./assets logo_width = 200 # Logo image width logo_height = 200 # Logo image height -- cgit v1.2.3