diff options
Diffstat (limited to 'assets/templates/markdown-feed.yaml')
-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 }} |