diff options
author | luoxu34 <zhang_zengjie@outlook.com> | 2018-06-23 19:17:51 +0300 |
---|---|---|
committer | luoxu34 <zhang_zengjie@outlook.com> | 2018-06-23 19:17:51 +0300 |
commit | ac372bfc7b189d789c5a43d5520a19b8dedde33d (patch) | |
tree | 30a09bf13384aa5cb7ecd14c264eef18d252207b | |
parent | 105ac6751a0668f7a232c3eb05bf16094e1c56d0 (diff) |
Add a favicon section to the config
-rw-r--r-- | exampleSite/config.toml | 3 | ||||
-rw-r--r-- | layouts/partials/head.html | 2 |
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"> |