Hugo 0.123 voegt extra slash toe, dus statisch toegevoegde slash hoeft niet meer

This commit is contained in:
Michael Boelen 2024-02-21 08:42:19 +00:00
parent 0174ff1e2f
commit 7ecaf9a6e9

View file

@ -19,7 +19,7 @@
{{ $webpPathStatic:= printf "assets/%s" $webpPath }}
{{ if (fileExists $webpPathStatic) -}}
<source srcset="/{{ $webpPath | safeURL }}" type="image/webp">
<source srcset="{{ $webpPath | safeURL }}" type="image/webp">
{{- end }}
{{- end }}
@ -28,7 +28,7 @@
{{ $webpPathStatic:= printf "assets/%s" $webpPath }}
{{ if (fileExists $webpPathStatic) -}}
<source srcset="/{{ $webpPath | safeURL }}" type="image/webp">
<source srcset="{{ $webpPath | safeURL }}" type="image/webp">
{{- end }}
{{- end }}