From 9a8c130c63e2d104c7373aeb33bb70efafdda4cf Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 15 Jan 2024 13:59:40 -0600 Subject: [PATCH] Revert "rss: don't minify whitespace in xml" This reverts commit b5475f0574eecd30a8c5856608673a6aa9d9d182. --- config/_default/hugo.toml | 27 --------------------------- layouts/_default/rss.xml | 2 +- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index ef02686..c6155e5 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -60,30 +60,3 @@ enableInlineShortcodes = true tag = "tags" series = "series" -# Copied from https://gohugo.io/getting-started/configuration/#configure-minify -# Only change made is xml keepWhitespace = true -[minify] - disableCSS = false - disableHTML = false - disableJS = false - disableJSON = false - disableSVG = false - disableXML = false - minifyOutput = false - [minify.tdewolff] - [minify.tdewolff.css] - decimals = -1 - keepCSS2 = true - [minify.tdewolff.html] - keepConditionalComments = true - keepDefaultAttrVals = true - keepDocumentTags = true - keepEndTags = true - keepQuotes = false - keepWhitespace = false - [minify.tdewolff.js] - [minify.tdewolff.json] - [minify.tdewolff.svg] - decimals = -1 - [minify.tdewolff.xml] - keepWhitespace = true \ No newline at end of file diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 198a490..e1f9961 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -10,7 +10,7 @@ {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}} -{{- printf "" | safeHTML }} +