aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/rss.xml
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-08-26 20:47:35 -0400
committertdro <tdro@noreply.example.com>2023-08-26 21:50:13 -0400
commitff8fe1d95f50405b01087a9ca87bc274245d9232 (patch)
tree6851028024e6f09096741004777b4d3cfd343d21 /themes/default/layouts/_default/rss.xml
parente34429e3b6b06c1109140a7175444e278ebafe15 (diff)
downloadcanory-ff8fe1d95f50405b01087a9ca87bc274245d9232.tar.gz
canory-ff8fe1d95f50405b01087a9ca87bc274245d9232.tar.bz2
canory-ff8fe1d95f50405b01087a9ca87bc274245d9232.zip
themes/default/layouts/_default/rss: Punt fallback image logic to figure object hybrid
Cleanup related rules
Diffstat (limited to 'themes/default/layouts/_default/rss.xml')
-rw-r--r--themes/default/layouts/_default/rss.xml14
1 files changed, 1 insertions, 13 deletions
diff --git a/themes/default/layouts/_default/rss.xml b/themes/default/layouts/_default/rss.xml
index c7bba6d..8cb5276 100644
--- a/themes/default/layouts/_default/rss.xml
+++ b/themes/default/layouts/_default/rss.xml
@@ -32,10 +32,6 @@
"/" $author.user "/" $author.user "-profile" (path.Ext $author.picture.profile)
-}}
-{{- if not (fileExists (print "public/" $image)) -}}
- {{- $image = "/data/media/404.png" -}}
-{{- end -}}
-
{{- $atomSelf := "" -}}
{{- $atomPrevious := "" -}}
{{- $atomNext := "" -}}
@@ -87,18 +83,11 @@
"/" $author.user "/" $author.user "-profile" (path.Ext $author.picture.profile)
-}}
- {{- if not (fileExists (print "public/" $image)) -}}
- {{- $image = "/data/media/404.png" -}}
- {{- end -}}
-
{{- $atomAuthorUri := print $absURL $image -}}
{{- $atomAuthorName := or .Params.Feed.name $author.name -}}
{{- if .Params.Feed.favicon -}}
{{- $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 $absURL $favicon -}}
{{- end -}}
@@ -109,7 +98,7 @@
<guid>{{ .Permalink }}</guid>
<description>
{{ partial "function-content.html" . | html -}}
- {{- print "<br>" | html -}}
+ {{- print "<br />" | html -}}
{{- partial "rss-tags.html" . | html }}
</description>
<atom:author>
@@ -121,5 +110,4 @@
{{ end -}}
</channel>
</rss>
-
{{- end -}}