From 6cb4a01d09d77adf085377e0b2b88b4b9d7cce90 Mon Sep 17 00:00:00 2001 From: tdro Date: Tue, 4 Apr 2023 20:49:39 -0400 Subject: themes/default/layouts/partials: Add missing absolute URLs Whoops.. URLs will need to be referenced using absURL at some point for consistency --- themes/default/layouts/_default/_markup/render-image.html | 4 ++-- themes/default/layouts/partials/author-card.html | 4 ++-- themes/default/layouts/partials/author-picture.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'themes') 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 @@ {{- with $sourceset -}} - + {{- end -}} {{ $alternate }} 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 -}} - + {{- end -}} {{ $alternate }} {{- /* This comment removes trailing newlines and white spaces. */ -}} -- cgit v1.2.3