aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/_markup/render-image.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-05 00:55:53 -0400
committertdro <tdro@noreply.example.com>2022-06-05 00:55:53 -0400
commit4c559daf909f025c5e8761e27be6a02fb5f2608f (patch)
tree2b87099fc6bd55f72d794d59995084ff4ccc00ea /themes/default/layouts/_default/_markup/render-image.html
parent49807a0d253e5df7c12990b16cd9c1ef6aef6dab (diff)
downloadcanory-4c559daf909f025c5e8761e27be6a02fb5f2608f.tar.gz
canory-4c559daf909f025c5e8761e27be6a02fb5f2608f.tar.bz2
canory-4c559daf909f025c5e8761e27be6a02fb5f2608f.zip
themes/default/layouts/partials/feeds-generate: Naively support enclosures
Support showing enclosure images in feeds. The goal is not to be accurate right now.
Diffstat (limited to 'themes/default/layouts/_default/_markup/render-image.html')
-rw-r--r--themes/default/layouts/_default/_markup/render-image.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/layouts/_default/_markup/render-image.html b/themes/default/layouts/_default/_markup/render-image.html
index 5dcfa80..1b73563 100644
--- a/themes/default/layouts/_default/_markup/render-image.html
+++ b/themes/default/layouts/_default/_markup/render-image.html
@@ -1,5 +1,5 @@
{{- $source := $.Destination | safeURL -}}
-{{- $local := print "content/" $source -}}
+{{- $public := print "public/" $source -}}
{{- $remoteImage := resources.GetRemote $source -}}
{{- $dimensions := "600x" -}}
{{- $width := "" -}}
@@ -8,8 +8,8 @@
{{- with $remoteImage -}}
{{- with .Err -}}
- {{- if fileExists $local -}}
- {{- $localImage := imageConfig $local -}}
+ {{- if fileExists $public -}}
+ {{- $localImage := imageConfig $public -}}
{{- with $localImage -}}
{{- $width = .Width -}}
{{- $height = .Height -}}