From b64cbe1ef8e311dd781c72a69989446e16244c38 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Fri, 11 Sep 2020 21:59:05 +0200 Subject: [PATCH] refactor(head): remove favicon output It's better to use favicon generator tools, and paste HTML in head/custom.html --- exampleSite/config.toml | 1 - layouts/partials/head.html | 8 +------- 2 files changed, 1 insertion(+), 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 -}} {{- end -}} - - {{- if .Site.Params.favicon -}} - {{- $logo := resources.Get .Site.Params.favicon -}} - {{- $favicon := $logo.Resize "32x" -}} - - {{- end -}} - + {{- partial "head/custom.html" . -}} \ No newline at end of file