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

github.com/gesquive/slate.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGus Esquivel <gesquive@gmail.com>2017-05-19 16:21:09 +0300
committerGus Esquivel <gesquive@gmail.com>2017-05-19 16:25:23 +0300
commitd69d1b6cec1437060511c1a4a3413a8bbffef62d (patch)
tree4cabdff74167af06069596307a2fb77277d87e24
parent865c770ac5ab89bab5e759b0aaa4b84325aed60c (diff)
add favicon site variable
-rw-r--r--README.md2
-rw-r--r--layouts/index.html3
2 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index c7feb93..f0805cf 100644
--- a/README.md
+++ b/README.md
@@ -46,6 +46,8 @@ BackgroundImages = [
BackgroundStyle = "background: #000000;"
# optional bool to have links open in a new window/tab (default: true)
OpenLinksInNewWindow = true
+# optional path to favicon
+Favicon = "favicon.ico"
# list of nav tags
[[ params.nav ]]
diff --git a/layouts/index.html b/layouts/index.html
index f3963fb..52b3171 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,6 +1,7 @@
<html>
<head>
- <title>{{ .Title }}</title>
+ <title>{{ .Title }}</title>{{ if .Site.Params.Favicon }}
+ <link rel="shortcut icon" href="{{ .Site.Params.Favicon }}">{{ end }}
<link rel="stylesheet" href="css/slate.css">
</head>