From 27462e1893e4721d844e2f0e574a1c46ee82f566 Mon Sep 17 00:00:00 2001 From: RPGillespie6 Date: Tue, 12 Mar 2019 21:40:07 -0400 Subject: [PATCH] Make favicon configurable Fix #18 --- README.md | 2 ++ layouts/partials/head.html | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 71c30d7..1b5e1fc 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,8 @@ paginate = 5 fullWidthTheme = false # center theme with default width centerTheme = false + # set a custom favicon (default is a `themeColor` square) + # favicon = "favicon.ico" [languages] [languages.en] diff --git a/layouts/partials/head.html b/layouts/partials/head.html index bb44924..8f108fd 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -16,8 +16,10 @@ -{{ with $.Site.Params.ThemeColor }} - +{{ if isset $.Site.Params "favicon" }} + +{{ else }} + {{ end }}