diff options
Diffstat (limited to 'themes/default/layouts/_default/_markup/render-image.html')
-rw-r--r-- | themes/default/layouts/_default/_markup/render-image.html | 6 |
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 -}} |