From 652e11e6816bdbf6ab36fb1dac3ed6c668beee01 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 14 Feb 2025 13:37:53 -0800 Subject: [PATCH] Remove feed warnings --- layouts/_default/list.atom.xml | 8 -------- layouts/_default/list.rss.xml | 4 ---- 2 files changed, 12 deletions(-) diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index 6c6f2155..9dcfc11c 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -125,14 +125,6 @@ {{ $content = markdownify .Description }} {{ end }} - {{ if not $title }} - {{ warnf "layouts/_default/list.atom.xml: Page %s does not have a title. The atom output requires a title. Either set the page's title parameter, or disable the atom output." .RelPermalink }} - {{ end }} - - {{ if .Lastmod.IsZero }} - {{ warnf "layouts/_default/list.atom.xml: Page %s does not have a modified date. The atom output requires a modified date. Either set the page's date parameter, or set the page's paige.feeds.exclude parameter to true, or disable the atom output." .RelPermalink }} - {{ end }} - {{ with partial "paige/func-authors.html" . }} {{ range . }} diff --git a/layouts/_default/list.rss.xml b/layouts/_default/list.rss.xml index e0b3ef59..d4c5004a 100644 --- a/layouts/_default/list.rss.xml +++ b/layouts/_default/list.rss.xml @@ -126,10 +126,6 @@ {{ $description = replaceRE `` (printf `` .Permalink) $description }} {{ $description = replaceRE `` (printf `` .Permalink) $description }} - {{ if and (not $description) (not $title) }} - {{ warnf "layouts/_default/rss.xml: Page %s does not have a title or description. The rss output requires a title or description. Either set the page's title or description parameters, or disable the rss output." .RelPermalink }} - {{ end }} - {{ with $author }} {{ . }} {{ end }}