Extract favicon into a partial

- Backwards compatible with previous implementation
- Consumers can define their own favicon in parital, depending on their
  preference of render / source
This commit is contained in:
Wilson E. Husin 2020-10-13 19:29:05 -07:00
parent 559ccfe896
commit b05203c2e6
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@
<meta name="twitter:creator" content="{{ .Site.Params.twitterCreator | default .Site.Params.twitter }}" />
{{ end }}
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
{{ partial "favicon.html" }}
<!-- Styles -->
{{ block "styles" . }} {{ end }} <!-- Get "style_opts" variable from "styles" block -->

View File

@ -0,0 +1 @@
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />