Add Atom icon, logo

master
Will Faught 2 years ago
parent e44ae3da4b
commit 87c0e4f8e3

@ -281,6 +281,8 @@ authors = []
# email = "will.faught@example.com"
# name = "Will Faught
# url = "https://willfaught.com/paige"
icon = "" # Example is "/icon.webp"
logo = "" # Example is "/logo.webp"
[paige.feed.rss]
managing_editor = "" # Example is "Will Faught <will.faught@example.com>"

@ -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 }}

Loading…
Cancel
Save