fix: check if favicon exists before accessing permalink (#1259)
This commit is contained in:
@@ -18,9 +18,9 @@
|
|||||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ with .Site.Params.favicon }}
|
{{- $favicon := partial "helper/image" (dict "Image" .Site.Params.favicon "Resources" resources) -}}
|
||||||
{{- $favicon := partial "helper/image" (dict "Image" . "Resources" resources) -}}
|
{{ with $favicon }}
|
||||||
<link rel="shortcut icon" href="{{ $favicon.Permalink }}" />
|
<link rel="shortcut icon" href="{{ .Permalink }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- partial "google_analytics.html" . -}}
|
{{- partial "google_analytics.html" . -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user