Use relative URL for favicon (#251)

This fixes sites which have the baseURL in a subdirectory.

Co-authored-by: Nick White <git@njw.name>
This commit is contained in:
nickjwhite 2020-06-03 14:17:41 +00:00 committed by GitHub
parent cfbd40cd86
commit 4cf0842964
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}