aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/_markup/render-image.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-04 02:27:15 -0400
committertdro <tdro@noreply.example.com>2022-05-04 02:27:15 -0400
commit30d44aac7a8539d9706df009cb3667d39ed7f350 (patch)
tree90fb63f92a3998c6a2b3ce8f18d7b2f286e9b9dc /themes/default/layouts/_default/_markup/render-image.html
parente4d1b4ae07b939730b82635b9cea4fab4005237e (diff)
downloadcanory-30d44aac7a8539d9706df009cb3667d39ed7f350.tar.gz
canory-30d44aac7a8539d9706df009cb3667d39ed7f350.tar.bz2
canory-30d44aac7a8539d9706df009cb3667d39ed7f350.zip
themes/default/layouts: Allow sub directories
Set base URL on all links.
Diffstat (limited to 'themes/default/layouts/_default/_markup/render-image.html')
-rw-r--r--themes/default/layouts/_default/_markup/render-image.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/themes/default/layouts/_default/_markup/render-image.html b/themes/default/layouts/_default/_markup/render-image.html
index 00f37cf..d2a9ff7 100644
--- a/themes/default/layouts/_default/_markup/render-image.html
+++ b/themes/default/layouts/_default/_markup/render-image.html
@@ -12,6 +12,7 @@
{{- $width = .Width -}}
{{- $height = .Height -}}
{{- end -}}
+ {{ $source = print ("" | absURL) $source }}
{{- else -}}
{{- $source = print "/images/404.png" -}}
{{- $localPath = print "static/" $source -}}
@@ -20,6 +21,7 @@
{{- $width = .Width -}}
{{- $height = .Height -}}
{{- end -}}
+ {{ $source = print ("" | absURL) $source }}
{{- end -}}
{{- else -}}
{{- $width = .Width -}}