diff options
-rw-r--r-- | themes/default/layouts/_default/_markup/render-image.html | 4 | ||||
-rw-r--r-- | themes/default/layouts/partials/author-card.html | 4 | ||||
-rw-r--r-- | themes/default/layouts/partials/author-picture.html | 4 |
3 files changed, 6 insertions, 6 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 -}} 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. */ -}} |