diff options
author | Wilson E. Husin <wilsonehusin@gmail.com> | 2020-10-14 05:29:05 +0300 |
---|---|---|
committer | Wilson E. Husin <wilsonehusin@gmail.com> | 2020-10-14 05:31:20 +0300 |
commit | c2756a5c043248daa91404fdefe9340cff43722f (patch) | |
tree | 61e050d4b73828e043026a0d9bba794e630bba4d | |
parent | 4128b8474f3a7230bebf5708c33e911b21dea761 (diff) |
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
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/partials/favicon.html | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index fa4ba49..75d07a7 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -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 --> diff --git a/layouts/partials/favicon.html b/layouts/partials/favicon.html new file mode 100644 index 0000000..4f6aa07 --- /dev/null +++ b/layouts/partials/favicon.html @@ -0,0 +1 @@ +<link rel="shortcut icon" type="image/png" href="/favicon.ico" /> |