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@gmail.com>2020-12-11 01:08:15 +0300
committerFabien <vaga@users.noreply.github.com>2020-12-11 12:25:32 +0300
commita2fa7cd8cc23323737c51ab5b6ed9d0f91e113dc (patch)
treeb31e020f25f95a1809868bf8ca49845e4f321a8a
parent982e21856dac446de160ebebff02c419feac86a7 (diff)
add favicon link
When deploying Hugo on non-root url, favicon is not found. This code let user configure favicon path in config.toml [params] favicon = <absolute path from />favicon.ico
-rw-r--r--layouts/_default/baseof.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 35db6f1..70e4a77 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -2,6 +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" }}" />
<meta charset="utf-8" />
{{ hugo.Generator }}
<meta name="viewport" content="width=device-width, initial-scale=1" />