Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head/head.html')
-rw-r--r--layouts/partials/head/head.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html
index be63710..5de6071 100644
--- a/layouts/partials/head/head.html
+++ b/layouts/partials/head/head.html
@@ -19,7 +19,12 @@
{{- end -}}
{{ with .Site.Params.favicon }}
- <link rel="shortcut icon" href="{{ . }}" />
+ {{ $favicon := resources.Get . }}
+ {{ if $favicon }}
+ <link rel="shortcut icon" href="{{ $favicon.RelPermalink }}" />
+ {{ else }}
+ {{ errorf "Failed loading favicon from %q" . }}
+ {{ end }}
{{ end }}
{{- template "_internal/google_analytics.html" . -}}