diff options
-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 |