From 1e37db6cefa9a27372559049afc46918ce39c258 Mon Sep 17 00:00:00 2001 From: Adam Kaplan Date: Wed, 27 Sep 2017 07:52:26 -0400 Subject: [PATCH] Favicons (#54) * Adding support for favicon * Fixing html tag --- 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..ffb9642 --- /dev/null +++ b/layouts/partials/site-favicon.html @@ -0,0 +1,3 @@ +{{ if .Site.Params.favicon }} + +{{ end }} \ No newline at end of file