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:
parent
cfbd40cd86
commit
4cf0842964
1 changed files with 2 additions and 2 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue