Add Atom icon, logo

This commit is contained in:
Will Faught
2023-09-24 17:38:22 -07:00
parent e44ae3da4b
commit 87c0e4f8e3
2 changed files with 12 additions and 0 deletions

View File

@@ -3,10 +3,12 @@
{{ $authors := $page.Param "paige.feed.atom.authors" }}
{{ $format := "2006-01-02T15:04:05Z07:00" }}
{{ $html := $page.AlternativeOutputFormats.Get "html" }}
{{ $icon := absLangURL ($page.Param "paige.feed.atom.icon") }}
{{ $id := "" }}
{{ $ids := dict }}
{{ $language := site.LanguageCode | default site.Language.Lang }}
{{ $limit := site.Config.Services.RSS.Limit }}
{{ $logo := absLangURL ($page.Param "paige.feed.atom.logo") }}
{{ $pagetitle := $page.Title | markdownify }}
{{ $rights := site.Copyright | markdownify }}
{{ $sitetitle := site.Title | markdownify }}
@@ -65,6 +67,10 @@
</author>
{{ end }}
{{ with $icon }}
<icon>{{ . }}</icon>
{{ end }}
<id>{{ $id }}</id>
{{ range $page.OutputFormats }}
@@ -89,6 +95,10 @@
{{ end }}
{{ end }}
{{ with $logo }}
<logo>{{ . }}</logo>
{{ end }}
{{ with $rights }}
<rights type="html">{{ printf "<![CDATA[%s]]>" . | safeHTML }}</rights>
{{ end }}