diff options
author | tdro <tdro@noreply.example.com> | 2022-06-27 23:22:58 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-27 23:22:58 -0400 |
commit | da474d74e545b077bd9c1f3249eba1efc57e3515 (patch) | |
tree | 9937405a34e66f3b66f4d7c53d6085cdce843888 /themes/default/layouts/_default/_markup/render-image.html | |
parent | 282999d0d58736cadd61fd05b8bee190133f7b65 (diff) | |
download | canory-da474d74e545b077bd9c1f3249eba1efc57e3515.tar.gz canory-da474d74e545b077bd9c1f3249eba1efc57e3515.tar.bz2 canory-da474d74e545b077bd9c1f3249eba1efc57e3515.zip |
themes/default/layouts/_default/_markup/render-image: Use and not or
Diffstat (limited to 'themes/default/layouts/_default/_markup/render-image.html')
-rw-r--r-- | themes/default/layouts/_default/_markup/render-image.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/_default/_markup/render-image.html b/themes/default/layouts/_default/_markup/render-image.html index 0cf1d5a..189ab5a 100644 --- a/themes/default/layouts/_default/_markup/render-image.html +++ b/themes/default/layouts/_default/_markup/render-image.html @@ -11,7 +11,7 @@ {{- $immutable := print ($relURL | humanize | urlize) "-" ($source | sha256 | truncate 8 "") -}} {{- $fileCache := print (partial "function-paths-media.html") "/" $author "/" $immutable -}} -{{- if not (or (fileExists (print "public/" $fileCache ".webp")) (fileExists (print "public/" $fileCache (path.Ext $source)))) -}} +{{- if not (and (fileExists (print "public/" $fileCache ".webp")) (fileExists (print "public/" $fileCache (path.Ext $source)))) -}} {{- with $remote := resources.GetRemote $source -}} {{- with .Err -}} {{- if fileExists $public -}} |