diff options
author | tdro <tdro@noreply.example.com> | 2022-12-26 17:01:58 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-12-27 21:05:14 -0500 |
commit | 773db7d222adcf5c4e47bf06dd071417831bfc60 (patch) | |
tree | 4d213223e0c0ede3b3b787daa04cf26e27eb7f04 /themes/default/layouts/_default/rss.xml | |
parent | d27b1096ac6f3f9d5880ecbd97097bfceecefa13 (diff) | |
download | canory-773db7d222adcf5c4e47bf06dd071417831bfc60.tar.gz canory-773db7d222adcf5c4e47bf06dd071417831bfc60.tar.bz2 canory-773db7d222adcf5c4e47bf06dd071417831bfc60.zip |
themes/default/layouts/_default/section.following: Select distinct
Bring back up the stack
Diffstat (limited to 'themes/default/layouts/_default/rss.xml')
-rw-r--r-- | themes/default/layouts/_default/rss.xml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/default/layouts/_default/rss.xml b/themes/default/layouts/_default/rss.xml index 9206978..23497ba 100644 --- a/themes/default/layouts/_default/rss.xml +++ b/themes/default/layouts/_default/rss.xml @@ -91,7 +91,11 @@ {{- $atomAuthorName := or .Params.Feed.name $author.name -}} {{- if .Params.Feed.favicon -}} - {{- $atomAuthorUri = .Params.Feed.favicon | absURL -}} + {{- $favicon := print "/" (partial "function-paths.html" "media") "/favicon." (.Params.Feed.source | anchorize) ".png" -}} + {{- if not (fileExists (print "public/" $favicon)) -}} + {{- $favicon = "/data/media/404.png" -}} + {{- end -}} + {{- $atomAuthorUri = print .Site.BaseURL $favicon -}} {{- end -}} <item> |