Add Atom icon, logo
This commit is contained in:
@@ -281,6 +281,8 @@ authors = []
|
|||||||
# email = "will.faught@example.com"
|
# email = "will.faught@example.com"
|
||||||
# name = "Will Faught
|
# name = "Will Faught
|
||||||
# url = "https://willfaught.com/paige"
|
# url = "https://willfaught.com/paige"
|
||||||
|
icon = "" # Example is "/icon.webp"
|
||||||
|
logo = "" # Example is "/logo.webp"
|
||||||
|
|
||||||
[paige.feed.rss]
|
[paige.feed.rss]
|
||||||
managing_editor = "" # Example is "Will Faught <will.faught@example.com>"
|
managing_editor = "" # Example is "Will Faught <will.faught@example.com>"
|
||||||
|
@@ -3,10 +3,12 @@
|
|||||||
{{ $authors := $page.Param "paige.feed.atom.authors" }}
|
{{ $authors := $page.Param "paige.feed.atom.authors" }}
|
||||||
{{ $format := "2006-01-02T15:04:05Z07:00" }}
|
{{ $format := "2006-01-02T15:04:05Z07:00" }}
|
||||||
{{ $html := $page.AlternativeOutputFormats.Get "html" }}
|
{{ $html := $page.AlternativeOutputFormats.Get "html" }}
|
||||||
|
{{ $icon := absLangURL ($page.Param "paige.feed.atom.icon") }}
|
||||||
{{ $id := "" }}
|
{{ $id := "" }}
|
||||||
{{ $ids := dict }}
|
{{ $ids := dict }}
|
||||||
{{ $language := site.LanguageCode | default site.Language.Lang }}
|
{{ $language := site.LanguageCode | default site.Language.Lang }}
|
||||||
{{ $limit := site.Config.Services.RSS.Limit }}
|
{{ $limit := site.Config.Services.RSS.Limit }}
|
||||||
|
{{ $logo := absLangURL ($page.Param "paige.feed.atom.logo") }}
|
||||||
{{ $pagetitle := $page.Title | markdownify }}
|
{{ $pagetitle := $page.Title | markdownify }}
|
||||||
{{ $rights := site.Copyright | markdownify }}
|
{{ $rights := site.Copyright | markdownify }}
|
||||||
{{ $sitetitle := site.Title | markdownify }}
|
{{ $sitetitle := site.Title | markdownify }}
|
||||||
@@ -65,6 +67,10 @@
|
|||||||
</author>
|
</author>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with $icon }}
|
||||||
|
<icon>{{ . }}</icon>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<id>{{ $id }}</id>
|
<id>{{ $id }}</id>
|
||||||
|
|
||||||
{{ range $page.OutputFormats }}
|
{{ range $page.OutputFormats }}
|
||||||
@@ -89,6 +95,10 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with $logo }}
|
||||||
|
<logo>{{ . }}</logo>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ with $rights }}
|
{{ with $rights }}
|
||||||
<rights type="html">{{ printf "<![CDATA[%s]]>" . | safeHTML }}</rights>
|
<rights type="html">{{ printf "<![CDATA[%s]]>" . | safeHTML }}</rights>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user