From 16f6203f909ad5da52664b9f0fcba03c77ec69c2 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Tue, 8 Aug 2023 12:40:46 +0200 Subject: [PATCH] #455, add BookFavicon parameter --- exampleSite/config.toml | 8 ++++++-- exampleSite/config.yaml | 8 ++++++-- layouts/partials/docs/html-head.html | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index da0b209..9f37a09 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -58,8 +58,12 @@ enableGitInfo = true # You can also specify this parameter per page in front matter. BookToC = true - # (Optional, default none) Set the path to a logo for the book. If the logo is - # /static/logo.png then the path would be logo.png + # (Optional, default favicon.png) Set the path to a favicon file. + # If the favicon is /static/favicon.png then the path would be favicon.png + # BookFavicon = 'favicon.png' + + # (Optional, default none) Set the path to a logo for the book. + # If the logo is /static/logo.png then the path would be logo.png # BookLogo = 'logo.png' # (Optional, default none) Set leaf bundle to render as side menu diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index de55039..b9b8016 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -54,8 +54,12 @@ params: # You can also specify this parameter per page in front matter. BookToC: true - # (Optional, default none) Set the path to a logo for the book. If the logo is - # /static/logo.png then the path would be logo.png + # (Optional, default favicon.png) Set the path to a favicon file. + # If the favicon is /static/favicon.png then the path would be favicon.png + # BookFavicon: "favicon.png" + + # (Optional, default none) Set the path to a logo for the book. + # If the logo is /static/logo.png then the path would be logo.png # BookLogo: /logo.png # (Optional, default none) Set leaf bundle to render as side menu diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 02ac4a5..c3a0c06 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -15,7 +15,7 @@ {{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate "manifest.json" . }} - + {{- range .Translations }}