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

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <jimmehcai@gmail.com>2020-09-11 22:59:05 +0300
committerJimmy Cai <jimmehcai@gmail.com>2020-09-11 22:59:05 +0300
commitb64cbe1ef8e311dd781c72a69989446e16244c38 (patch)
tree7783748338807651cb92b29ab4c31667f4061269
parent3aabc8e61c4c63aaa4fc8ee26d6a5d660f17f9a9 (diff)
refactor(head): remove favicon output
It's better to use favicon generator tools, and paste HTML in head/custom.html
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/head.html8
2 files changed, 1 insertions, 8 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index e1ae19f..cd42134 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -12,7 +12,6 @@ DefaultContentLanguage = "en" # Theme i18n support
[params]
mainSections = ["post"]
- favicon = ""
featuredImageField = "image"
[params.dateFormat]
published = "Jan 02, 2006"
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index d7af8de..894c0bb 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -13,12 +13,6 @@
{{- range .AlternativeOutputFormats -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
{{- end -}}
-
- {{- if .Site.Params.favicon -}}
- {{- $logo := resources.Get .Site.Params.favicon -}}
- {{- $favicon := $logo.Resize "32x" -}}
- <link rel="icon" type="image/png" href="{{ $favicon.RelPermalink }}" />
- {{- end -}}
-
+
{{- partial "head/custom.html" . -}}
</head> \ No newline at end of file