aboutsummaryrefslogtreecommitdiff
path: root/assets/templates
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-09 23:22:47 -0400
committertdro <tdro@noreply.example.com>2022-06-09 23:22:47 -0400
commita5d761ce013c38bb500807775b757e16c59fbaa8 (patch)
tree8e0f54a76365d5df4f28a6c5f959e5f74c013db0 /assets/templates
parent83cd7ac8b6b454d158d4b668334e21c58f920c85 (diff)
downloadcanory-a5d761ce013c38bb500807775b757e16c59fbaa8.tar.gz
canory-a5d761ce013c38bb500807775b757e16c59fbaa8.tar.bz2
canory-a5d761ce013c38bb500807775b757e16c59fbaa8.zip
assets/templates/markdown-feed: Wrap enclosure only
Diffstat (limited to 'assets/templates')
-rw-r--r--assets/templates/markdown-feed.yaml7
1 files changed, 3 insertions, 4 deletions
diff --git a/assets/templates/markdown-feed.yaml b/assets/templates/markdown-feed.yaml
index c4450aa..d39a999 100644
--- a/assets/templates/markdown-feed.yaml
+++ b/assets/templates/markdown-feed.yaml
@@ -26,7 +26,6 @@ feed:
| replaceRE "}" "&#125;"
}} [Read More &rarr;]({{ .link }})
-{{ with .enclosure -}}
{{- $author := "default" -}}
{{- with $.author -}}
@@ -36,10 +35,10 @@ feed:
{{- $description := "Image/Picture" -}}
{{- with $.description -}}
{{ $description = . | htmlEscape }}
-{{- end -}}
+{{- end }}
-![{{ $description }}]({{ $.enclosure }} "
+{{ with .enclosure -}}
+![{{ $description }}]({{ . }} "
{{ $description }}"
)
-
{{- end }}