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

github.com/jrutheiser/hugo-lithium-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluoxu34 <zhang_zengjie@outlook.com>2018-06-23 19:17:51 +0300
committerluoxu34 <zhang_zengjie@outlook.com>2018-06-23 19:17:51 +0300
commitac372bfc7b189d789c5a43d5520a19b8dedde33d (patch)
tree30a09bf13384aa5cb7ecd14c264eef18d252207b
parent105ac6751a0668f7a232c3eb05bf16094e1c56d0 (diff)
Add a favicon section to the config
-rw-r--r--exampleSite/config.toml3
-rw-r--r--layouts/partials/head.html2
2 files changed, 4 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 82e5ae6..46175ec 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -28,3 +28,6 @@ disqusShortname = ""
height = 50
alt = "Logo"
+ [params.icon]
+ url = "favicon.ico"
+
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 025c02f..4988d38 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -27,6 +27,6 @@
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
-<link rel="icon" href="{{ .Site.BaseURL }}images/{{ .Site.Params.logo.url }}" type="image/x-icon"/>
+<link rel="icon" href="{{ .Site.BaseURL }}images/{{ .Site.Params.icon.url }}" type="image/x-icon"/>
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/main.css" media="all">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Merriweather:400|Lato:400,400italic,700">