aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-04-04 20:49:39 -0400
committertdro <tdro@noreply.example.com>2023-04-04 21:47:33 -0400
commit6cb4a01d09d77adf085377e0b2b88b4b9d7cce90 (patch)
tree9cec811602a2e0474057779cf63921b1d2ec0180 /themes/default/layouts/partials
parent2d3efc957712d8611efebd56640fc2fc298ef842 (diff)
downloadcanory-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/partials')
-rw-r--r--themes/default/layouts/partials/author-card.html4
-rw-r--r--themes/default/layouts/partials/author-picture.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/themes/default/layouts/partials/author-card.html b/themes/default/layouts/partials/author-card.html
index bbb3ec8..61c403a 100644
--- a/themes/default/layouts/partials/author-card.html
+++ b/themes/default/layouts/partials/author-card.html
@@ -42,12 +42,12 @@
<a title="{{ .Data.name }}" href="{{ "" | absURL }}/{{ .Data.user }}/#">
<picture>
{{- with $sourceset -}}
- <source srcset="{{ $sourceset }}" type="image/webp" />
+ <source srcset="{{ print ("" | absURL) $sourceset }}" type="image/webp" />
{{- end -}}
<img
width="{{ or $width "64" }}"
height="{{ or $height "64" }}"
- src="{{ $source }}"
+ src="{{ print ("" | absURL) $source }}"
alt="{{ $alternate }}"
/>
</picture>
diff --git a/themes/default/layouts/partials/author-picture.html b/themes/default/layouts/partials/author-picture.html
index dbbfd69..9153e08 100644
--- a/themes/default/layouts/partials/author-picture.html
+++ b/themes/default/layouts/partials/author-picture.html
@@ -35,13 +35,13 @@
{{- end -}}
{{- with $sourceset -}}
-<source srcset="{{ $sourceset }}" type="image/webp" />
+<source srcset="{{ print ("" | absURL) $sourceset }}" type="image/webp" />
{{- end -}}
<img
width="{{ $width }}"
height="{{ $height }}"
- src="{{ $source }}"
+ src="{{ print ("" | absURL) $source }}"
alt="{{ $alternate }}"
/>
{{- /* This comment removes trailing newlines and white spaces. */ -}}