From ca3e0cfa9eb0dbc09e727de4a6546da18741ac65f21a7ea1dbe85e416360709f Mon Sep 17 00:00:00 2001 From: Nicholas Johnson <> Date: Fri, 18 Sep 2026 00:00:00 +0000 Subject: Use the registered media type for Atom feeds The Atom output formats were declared against "application/atom", which is not a registered media type; the registered one is "application/atom+xml". Nothing downstream currently depends on it, since the served content type is decided by the .xml suffix, but the declaration was wrong and .MediaType reported it to templates. Feed filenames and locations are unchanged. Co-Authored-By: Claude Opus 5 --- config/_default/hugo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/_default/hugo.toml') diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index 78f2292..30e9bcd 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -1,12 +1,12 @@ [mediaTypes] - [mediaTypes."application/atom"] + [mediaTypes."application/atom+xml"] suffixes = ["xml"] [mediaTypes."text/gemini"] suffixes = ["gmi"] [outputFormats] [outputFormats.Atom] - mediaType = "application/atom" + mediaType = "application/atom+xml" baseName = "atom" [outputFormats.Gemini] mediaType = "text/gemini" @@ -15,7 +15,7 @@ permalinkable = true protocol = "gemini://" [outputFormats.Gemini_Atom] - mediaType = "application/atom" + mediaType = "application/atom+xml" baseName = "atom" protocol = "gemini://" -- cgit v1.2.3