Skip to content

Commit

Permalink
Explain atom, rss output requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
willfaught committed Jul 29, 2024
1 parent 13b428c commit c51041b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions layouts/_default/list.atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{{ $title := delimit $titles " · " }}

{{ if not $title }}
{{ warnf "layouts/_default/list.atom.xml: page %s does not have a title" $page.RelPermalink }}
{{ 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." $page.RelPermalink }}
{{ end }}

{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
Expand Down Expand Up @@ -119,11 +119,11 @@
{{ end }}

{{ if not $title }}
{{ warnf "layouts/_default/list.atom.xml: page %s does not have a title" .RelPermalink }}
{{ 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" .RelPermalink }}
{{ 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.feed.disable parameter to true, or disable the atom output." .RelPermalink }}
{{ end }}

{{ with partial "paige/authors.html" . }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/_default/list.rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{{ $title := delimit $titles " · " }}

{{ if not $title }}
{{ warnf "layouts/_default/list.rss.xml: page %s does not have a title" $page.RelPermalink }}
{{ warnf "layouts/_default/list.rss.xml: Page %s does not have a title. The rss output requires a title. Either set the page's title parameter, or disable the rss output." $page.RelPermalink }}
{{ end }}

{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
Expand Down Expand Up @@ -125,7 +125,7 @@
{{ $description = $description | replaceRE `<a href="#fnref:(\d+)" class="footnote-backref" role="doc-backlink">` (printf `<a href="%s#fnref:$1" class="footnote-backref" role="doc-backlink">` .Permalink) }}

{{ if and (not $description) (not $title) }}
{{ warnf "layouts/_default/rss.xml: page %s does not have a title or description" .RelPermalink }}
{{ 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 }}
Expand Down

0 comments on commit c51041b

Please sign in to comment.