From ddd6aa2d207890e2cef6808522b181d29b1ddc56 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 20 Dec 2020 11:38:49 +0100 Subject: [PATCH] feat(head): add favicon setting in config.yaml (#73) closes https://github.com/CaiJimmy/hugo-theme-stack/issues/42 --- exampleSite/config.yaml | 1 + layouts/partials/head/head.html | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 997f8fa..64706d0 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -20,6 +20,7 @@ params: - post featuredImageField: image rssFullContent: true + favicon: dateFormat: published: Jan 02, 2006 diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html index 40d9749..de2982c 100644 --- a/layouts/partials/head/head.html +++ b/layouts/partials/head/head.html @@ -17,4 +17,8 @@ {{- end -}} +{{ with .Site.Params.favicon }} + +{{ end }} + {{- partial "head/custom.html" . -}} \ No newline at end of file