diff --git a/exampleSite/config.toml b/exampleSite/config.toml index da0b209dabc0aff3002f7675cde77a68dbadf921..9f37a094b9b5ca9b7c7217991ff6460495d866f2 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 de550396d379f534b24eaa37076e55d1dac476d9..b9b8016763c108f8a0675ca9e7249098d581064d 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 02ac4a51f892b72ff03f29ac8f58bc788e4ac2b0..c3a0c06fcc2deac19264fff3f9a65b64b5d4fbc1 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" . }} <link rel="manifest" href="{{ $manifest.RelPermalink }}"> -<link rel="icon" href="{{ "favicon.png" | relURL }}" type="image/x-icon"> +<link rel="icon" href="{{ .Params.BookFavicon | default "favicon.png" | relURL }}" > {{- range .Translations }} <link rel="alternate" hreflang="{{ default .Language.Lang .Site.LanguageCode }}" href="{{ .Permalink }}" title="{{ partial "docs/title" . }}">