diff options
author | tdro <tdro@noreply.example.com> | 2023-04-04 20:49:39 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-04-04 21:47:33 -0400 |
commit | 6cb4a01d09d77adf085377e0b2b88b4b9d7cce90 (patch) | |
tree | 9cec811602a2e0474057779cf63921b1d2ec0180 /themes/default/layouts/_default/_markup/render-image.html | |
parent | 2d3efc957712d8611efebd56640fc2fc298ef842 (diff) | |
download | canory-6cb4a01d09d77adf085377e0b2b88b4b9d7cce90.tar.gz canory-6cb4a01d09d77adf085377e0b2b88b4b9d7cce90.tar.bz2 canory-6cb4a01d09d77adf085377e0b2b88b4b9d7cce90.zip |
themes/default/layouts/partials: Add missing absolute URLs
Whoops.. URLs will need to be referenced using absURL at some point for consistency
Diffstat (limited to 'themes/default/layouts/_default/_markup/render-image.html')
-rw-r--r-- | themes/default/layouts/_default/_markup/render-image.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/_default/_markup/render-image.html b/themes/default/layouts/_default/_markup/render-image.html index b98efdf..ad4c91f 100644 --- a/themes/default/layouts/_default/_markup/render-image.html +++ b/themes/default/layouts/_default/_markup/render-image.html @@ -68,10 +68,10 @@ {{- with $exists }} {{- if fileExists (print "public/" $fileCache ".webp") -}} - {{- $srcset = print "/" $fileCache ".webp" -}} + {{- $srcset = print ("" | absURL) "/" $fileCache ".webp" -}} {{- end -}} {{- if fileExists (print "public/" $author "/media/" $immutable ".webp") -}} - {{- $srcset = print "/" $author "/media/" $immutable ".webp" -}} + {{- $srcset = print ("" | absURL) "/" $author "/media/" $immutable ".webp" -}} {{- end -}} {{- $width = .Width -}} {{- $height = .Height -}} |