From 5cdeb1622b37a66e090a09f4a0dfcaeb36f245a9 Mon Sep 17 00:00:00 2001 From: Adam Kaplan Date: Tue, 26 Sep 2017 22:06:58 -0400 Subject: [PATCH] Adding support for favicon --- exampleSite/config.toml | 1 + layouts/_default/baseof.html | 3 +++ layouts/partials/site-favicon.html | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 layouts/partials/site-favicon.html diff --git a/exampleSite/config.toml b/exampleSite/config.toml index bdf4375..d61ed05 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -17,6 +17,7 @@ enableRobotsTXT = true filename = "sitemap.xml" [params] + favicon = "" description = "The last theme you'll ever need. Maybe." facebook = "" twitter = "https://twitter.com/GoHugoIO" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 1a59233..577940a 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -18,6 +18,9 @@ {{ end }} + {{ block "favicon" . }} + {{ partial "site-favicon.html" . }} + {{ end }} {{ if .RSSLink }} diff --git a/layouts/partials/site-favicon.html b/layouts/partials/site-favicon.html new file mode 100644 index 0000000..2785992 --- /dev/null +++ b/layouts/partials/site-favicon.html @@ -0,0 +1,3 @@ +{{ if .Site.Params.favicon }} + +{{ end }} \ No newline at end of file