diff options
author | MARC Matthieu <matthieu.marc@ensam.eu> | 2020-12-11 12:23:44 +0300 |
---|---|---|
committer | Fabien <vaga@users.noreply.github.com> | 2020-12-11 12:25:32 +0300 |
commit | b3e4d71512169c58ec7d00d14b7d8a29cdc2636c (patch) | |
tree | ba08311b7d1ecec9ccb8649b7583fd8e33666344 | |
parent | a2fa7cd8cc23323737c51ab5b6ed9d0f91e113dc (diff) |
add favicon parameters
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -32,6 +32,7 @@ In your `config.toml` file, define the following variables in `params`: - `description`: Short description of the author - `avatar`: Path of file containing the author avatar image - `menu_item_separator`: Separator between each menu item. HTML allowed (default: " - ") +- `favicon`: Absolute path of your favicon.ico file (default: "/favicon.ico") To add a menu item, add the following lines in `menu`: diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 70e4a77..cccdf56 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,7 +2,7 @@ <html lang="{{ .Site.LanguageCode | default "en-us" }}"> <head> <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} // {{ .Site.Title }}{{ end }}</title> - <link rel="shortcut icon" href="{{ .Site.Params.favicon | default "favicon.ico" }}" /> + <link rel="shortcut icon" href="{{ .Site.Params.favicon | default "/favicon.ico" }}" /> <meta charset="utf-8" /> {{ hugo.Generator }} <meta name="viewport" content="width=device-width, initial-scale=1" /> |