Use a relative link, not permalink to baseURL. Fixes favicon when testing Docker container's NGINX building.

This commit is contained in:
2025-08-19 15:01:47 -07:00
parent 065b74b7d1
commit 5a7deb13f7

View File

@@ -10,7 +10,7 @@ $faviconSizes := .Param "faviconSizes" }}{{
range $i := $faviconSizes }}{{
$resource := resources.GetMatch ($favicon) }}{{
$image := $resource.Resize (printf "%dx%d CatmullRom" $i $i) }}
<link rel="icon" type="image/png" sizes="{{ $i }}x{{ $i }}" href="{{ $image.Permalink }}">{{
<link rel="icon" type="image/png" sizes="{{ $i }}x{{ $i }}" href="{{ $image.RelPermalink }}">{{
end }}
<meta name="description" content="{{ with .Param "description" }}{{ . }}{{ else }}{{ .Summary }}{{ end }}">
<meta name="keywords" content="{{