Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vaga/hugo-theme-m10c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMARC Matthieu <matthieu.marc@ensam.eu>2020-12-11 12:23:44 +0300
committerFabien <vaga@users.noreply.github.com>2020-12-11 12:25:32 +0300
commitb3e4d71512169c58ec7d00d14b7d8a29cdc2636c (patch)
treeba08311b7d1ecec9ccb8649b7583fd8e33666344
parenta2fa7cd8cc23323737c51ab5b6ed9d0f91e113dc (diff)
add favicon parameters
-rw-r--r--README.md1
-rw-r--r--layouts/_default/baseof.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index bb82bbc..1b67988 100644
--- a/README.md
+++ b/README.md
@@ -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" />