Hugo 0.123 voegt extra slash toe, dus statisch toegevoegde slash hoeft niet meer
This commit is contained in:
parent
0174ff1e2f
commit
7ecaf9a6e9
1 changed files with 2 additions and 2 deletions
|
@ -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 }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue