Lowercase warning messages

master
Will Faught 2 years ago
parent 437d8721c8
commit 823ade1eec

@ -46,7 +46,7 @@
{{ else if $sitetitle }} {{ else if $sitetitle }}
{{ $title = $sitetitle }} {{ $title = $sitetitle }}
{{ else }} {{ else }}
{{ 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" $page.RelPermalink }}
{{ end }} {{ end }}
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }} {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
@ -143,17 +143,17 @@
{{ end }} {{ end }}
{{ with index $ids $id }} {{ with index $ids $id }}
{{ warnf "layouts/_default/list.atom.xml: Pages %s and %s have the same ID" . $subpage.RelPermalink }} {{ warnf "layouts/_default/list.atom.xml: pages %s and %s have the same ID" . $subpage.RelPermalink }}
{{ end }} {{ end }}
{{ $ids = merge (dict $id .RelPermalink) $ids }} {{ $ids = merge (dict $id .RelPermalink) $ids }}
{{ if not $title }} {{ 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" .RelPermalink }}
{{ end }} {{ end }}
{{ if .Lastmod.IsZero }} {{ 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" .RelPermalink }}
{{ end }} {{ end }}
{{ with partial "paige/authors.html" . }} {{ with partial "paige/authors.html" . }}

@ -37,7 +37,7 @@
{{ else if $sitetitle }} {{ else if $sitetitle }}
{{ $title = $sitetitle }} {{ $title = $sitetitle }}
{{ else }} {{ else }}
{{ warnf "layouts/_default/rss.xml: Page %s does not have a title" $page.RelPermalink }} {{ warnf "layouts/_default/rss.xml: page %s does not have a title" $page.RelPermalink }}
{{ end }} {{ end }}
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }} {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
@ -109,7 +109,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) }} {{ $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) }} {{ 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" .RelPermalink }}
{{ end }} {{ end }}
{{ if .Params.id }} {{ if .Params.id }}
@ -122,7 +122,7 @@
{{ end }} {{ end }}
{{ with index $guids $guid }} {{ with index $guids $guid }}
{{ warnf "layouts/_default/rss.xml: Pages %s and %s have the same GUID" . $subpage.RelPermalink }} {{ warnf "layouts/_default/rss.xml: pages %s and %s have the same GUID" . $subpage.RelPermalink }}
{{ end }} {{ end }}
{{ $guids = merge (dict $guid .RelPermalink) $guids }} {{ $guids = merge (dict $guid .RelPermalink) $guids }}

Loading…
Cancel
Save