From a5d761ce013c38bb500807775b757e16c59fbaa8 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 9 Jun 2022 23:22:47 -0400 Subject: assets/templates/markdown-feed: Wrap enclosure only --- assets/templates/markdown-feed.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'assets/templates') 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 }} -- cgit v1.2.3