From ad41ddf18828adb81b4e029aff885e46faf708bb Mon Sep 17 00:00:00 2001 From: Thomas Panzeri Date: Fri, 26 May 2023 21:06:45 +0200 Subject: [PATCH] Add favicon to config file --- README.md | 12 ++++++++++++ exampleSite/config.toml | 1 + layouts/_default/baseof.html | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 21f7b36b..a0782989 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,18 @@ You can edit the logo from the `config.toml` desktop_height = "36px" alt = "Serif - A Hugo Business Theme" ``` +### Favicon + +You can edit the favicon from the `config.toml` + +```toml +# config.toml + +[params] + google_analytics_id = "UA-XXX-1" + google_tag_manager_id = "" + favicon = "favicon-32x32.svg" +``` ### Fonts diff --git a/exampleSite/config.toml b/exampleSite/config.toml index a105f0f9..8969ec59 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -13,6 +13,7 @@ title = "Hugo Serif Theme" # In most cases you will only want to set the google_analytics_id OR the google_tag_manager_id. If you have Google Analytics included in your GTM tags don't put your GA ID here. Otherwise your data might be useless. google_analytics_id = "" google_tag_manager_id = "" + favicon = "favicon-32x32.svg" [params.homepage] show_contact_box = true # show / hide the contaxt box on the homepage diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ace52a26..f6f1f485 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,7 +6,7 @@ {{ block "title" . }}{{ .Params.meta_title | default (printf "%s - %s" .Title .Site.Title) }}{{ end }} - + {{ partial "google-fonts.html" . }}