Use a relative link, not permalink to baseURL. Fixes favicon when testing Docker container's NGINX building.
This commit is contained in:
@@ -10,7 +10,7 @@ $faviconSizes := .Param "faviconSizes" }}{{
|
|||||||
range $i := $faviconSizes }}{{
|
range $i := $faviconSizes }}{{
|
||||||
$resource := resources.GetMatch ($favicon) }}{{
|
$resource := resources.GetMatch ($favicon) }}{{
|
||||||
$image := $resource.Resize (printf "%dx%d CatmullRom" $i $i) }}
|
$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 }}
|
end }}
|
||||||
<meta name="description" content="{{ with .Param "description" }}{{ . }}{{ else }}{{ .Summary }}{{ end }}">
|
<meta name="description" content="{{ with .Param "description" }}{{ . }}{{ else }}{{ .Summary }}{{ end }}">
|
||||||
<meta name="keywords" content="{{
|
<meta name="keywords" content="{{
|
||||||
|
Reference in New Issue
Block a user