diff options
author | Jonathan Rutheiser <jonathan.rutheiser@gmail.com> | 2019-02-04 11:31:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-04 11:31:08 +0300 |
commit | 30dc2e3d46847446e1121d145d0519fc29474375 (patch) | |
tree | 6dd89764ded33a49e25db9ec33f7ff9d1a3406d2 | |
parent | 354060351781958f5976a0e642d15aefdd2ecb85 (diff) | |
parent | 6be604baf8541d909c69c6731926cc6cfa891488 (diff) |
Merge pull request #29 from justinclift/favicon_upstream_v1
Add favicon support
-rw-r--r-- | exampleSite/config.toml | 3 | ||||
-rw-r--r-- | layouts/partials/head.html | 3 | ||||
-rw-r--r-- | static/images/favicon.ico | bin | 0 -> 8046 bytes |
3 files changed, 6 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 46175ec..73bc994 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -22,6 +22,9 @@ disqusShortname = "" [params] description = "" + # path to the favicon, under "static" + favicon = "images/favicon.ico" + [params.logo] url = "logo.png" width = 50 diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4988d38..686ac86 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -10,6 +10,9 @@ <title>{{ .Title }} - {{ .Site.Title }}</title> <meta property="og:title" content="{{ .Title }} - {{ .Site.Title }}"> {{ end }} +{{ with .Site.Params.favicon }} + <link href='{{ . | absURL }}' rel='icon' type='image/x-icon'/> +{{ end }} {{ if eq .URL "/" }} <meta property="description" content="{{ .Site.Params.description }}"> diff --git a/static/images/favicon.ico b/static/images/favicon.ico Binary files differnew file mode 100644 index 0000000..70a8155 --- /dev/null +++ b/static/images/favicon.ico |