aboutsummaryrefslogtreecommitdiff
path: root/assets/templates
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-09 23:18:20 -0400
committertdro <tdro@noreply.example.com>2022-06-09 23:18:20 -0400
commit83cd7ac8b6b454d158d4b668334e21c58f920c85 (patch)
tree5e1d6520e406e728621e47f0739950cccf4d26a2 /assets/templates
parent1f5a136cb9dfab17f2d03f375157f2605a82f777 (diff)
downloadcanory-83cd7ac8b6b454d158d4b668334e21c58f920c85.tar.gz
canory-83cd7ac8b6b454d158d4b668334e21c58f920c85.tar.bz2
canory-83cd7ac8b6b454d158d4b668334e21c58f920c85.zip
assets/templates/markdown-feed: Render image handles itself
Diffstat (limited to 'assets/templates')
-rw-r--r--assets/templates/markdown-feed.yaml4
1 files changed, 0 insertions, 4 deletions
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 }}