diff options
Diffstat (limited to 'layouts/partials/head/head.html')
-rw-r--r-- | layouts/partials/head/head.html | 7 |
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" . -}} |