From 6be604baf8541d909c69c6731926cc6cfa891488 Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Mon, 4 Feb 2019 13:09:17 +1100 Subject: Add favicon support --- exampleSite/config.toml | 3 +++ layouts/partials/head.html | 3 +++ static/images/favicon.ico | Bin 0 -> 8046 bytes 3 files changed, 6 insertions(+) create mode 100644 static/images/favicon.ico 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 }} - {{ .Site.Title }} {{ end }} +{{ with .Site.Params.favicon }} + +{{ end }} {{ if eq .URL "/" }} diff --git a/static/images/favicon.ico b/static/images/favicon.ico new file mode 100644 index 0000000..70a8155 Binary files /dev/null and b/static/images/favicon.ico differ -- cgit v1.2.3