diff options
author | tdro <tdro@noreply.example.com> | 2022-06-09 23:22:47 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-09 23:22:47 -0400 |
commit | a5d761ce013c38bb500807775b757e16c59fbaa8 (patch) | |
tree | 8e0f54a76365d5df4f28a6c5f959e5f74c013db0 /assets/templates | |
parent | 83cd7ac8b6b454d158d4b668334e21c58f920c85 (diff) | |
download | canory-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.yaml | 7 |
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 "}" "}" }} [Read More →]({{ .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 }} |