Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jakewies/hugo-theme-codex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilson E. Husin <wilsonehusin@gmail.com>2020-10-14 05:29:05 +0300
committerWilson E. Husin <wilsonehusin@gmail.com>2020-10-14 05:31:20 +0300
commitc2756a5c043248daa91404fdefe9340cff43722f (patch)
tree61e050d4b73828e043026a0d9bba794e630bba4d
parent4128b8474f3a7230bebf5708c33e911b21dea761 (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.html2
-rw-r--r--layouts/partials/favicon.html1
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" />