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:
authorJonathan Rutheiser <jonathan.rutheiser@gmail.com>2018-06-26 20:20:11 +0300
committerGitHub <noreply@github.com>2018-06-26 20:20:11 +0300
commit354060351781958f5976a0e642d15aefdd2ecb85 (patch)
tree30a09bf13384aa5cb7ecd14c264eef18d252207b
parent3e7054401cdee2664fe3901d35cc79eaf0c6545c (diff)
parentac372bfc7b189d789c5a43d5520a19b8dedde33d (diff)
Merge pull request #24 from luoxu34/master
Add icon link to head.html
-rw-r--r--exampleSite/config.toml3
-rw-r--r--layouts/partials/head.html1
2 files changed, 4 insertions, 0 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 dd79beb..4988d38 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -27,5 +27,6 @@
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
+<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">