mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

nickjwhite
03.17.2020 4cf0842964b6dc3897f92535cfa40dc67f1b1158
Use relative URL for favicon (#251)

This fixes sites which have the baseURL in a subdirectory.

Co-authored-by: Nick White <git@njw.name>
1 files modified
4 ■■■■ changed files
layouts/partials/site-favicon.html 4 ●●●● patch | view | raw | blame | history
layouts/partials/site-favicon.html
@@ -1,3 +1,3 @@
{{ if .Site.Params.favicon }}
<link rel="shortcut icon" href="/{{ .Site.Params.favicon }}" type="image/x-icon" />
{{ end }}
<link rel="shortcut icon" href="{{ relURL ($.Site.Params.favicon) }}" type="image/x-icon" />
{{ end }}