From 83cd7ac8b6b454d158d4b668334e21c58f920c85 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 9 Jun 2022 23:18:20 -0400 Subject: assets/templates/markdown-feed: Render image handles itself --- assets/templates/markdown-feed.yaml | 4 ---- 1 file changed, 4 deletions(-) (limited to 'assets/templates') diff --git a/assets/templates/markdown-feed.yaml b/assets/templates/markdown-feed.yaml index 696785d..c4450aa 100644 --- a/assets/templates/markdown-feed.yaml +++ b/assets/templates/markdown-feed.yaml @@ -38,12 +38,8 @@ feed: {{ $description = . | htmlEscape }} {{- end -}} -{{- with $enclosure := resources.GetRemote . -}} -{{- $enclosure = .Content | resources.FromString (print $author "/media/" ($enclosure | urlize)) -}} -{{- $write := print $author "/media/" (path.Base ($enclosure.Resize "600x").RelPermalink) }} ![{{ $description }}]({{ $.enclosure }} " {{ $description }}" ) -{{- end -}} {{- end }} -- cgit v1.2.3