Browse Source

Use relative URL for favicon (#251)

This fixes sites which have the baseURL in a subdirectory.

Co-authored-by: Nick White <git@njw.name>
tags/2.6.0
nickjwhite 4 years ago
parent
commit
4cf0842964
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      layouts/partials/site-favicon.html

+ 2
- 2
layouts/partials/site-favicon.html 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 }}

Loading…
Cancel
Save