From 22ece0bf2e4c39b7db38837c1be5832baa798d98 Mon Sep 17 00:00:00 2001 From: Zachary Betz Date: Wed, 13 Feb 2019 15:47:30 -0600 Subject: [PATCH] Tweak favicon logic --- README.md | 2 +- layouts/partials/head.html | 24 ++++++++++-------------- static/{images => }/favicon-16x16.png | Bin static/{images => }/favicon-32x32.png | Bin static/{images => }/favicon-96x96.png | Bin static/{images => }/favicon.ico | Bin 6 files changed, 11 insertions(+), 15 deletions(-) rename static/{images => }/favicon-16x16.png (100%) rename static/{images => }/favicon-32x32.png (100%) rename static/{images => }/favicon-96x96.png (100%) rename static/{images => }/favicon.ico (100%) diff --git a/README.md b/README.md index c36a6b7..af25eb4 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ See the [full list of supported shortcodes](https://cupper-hugo-theme.netlify.co ## Favicons -Upload your image to [RealFaviconGenerator](https://realfavicongenerator.net/) then copy-paste the generated favicon files to `static/images`. +Upload your image to [RealFaviconGenerator](https://realfavicongenerator.net/) then copy-paste the generated favicon files under `static`. ## Credits diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 698883b..ab46ea5 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,29 +3,24 @@ - - - - - - - - - - - - - + + + + + + - + + + {{ $title := print .Title " | " .Site.Title }} {{ if .IsHome }} {{ $title = .Site.Title }} @@ -33,6 +28,7 @@ {{ $title }} + {{ if .IsHome }} {{ end }} diff --git a/static/images/favicon-16x16.png b/static/favicon-16x16.png similarity index 100% rename from static/images/favicon-16x16.png rename to static/favicon-16x16.png diff --git a/static/images/favicon-32x32.png b/static/favicon-32x32.png similarity index 100% rename from static/images/favicon-32x32.png rename to static/favicon-32x32.png diff --git a/static/images/favicon-96x96.png b/static/favicon-96x96.png similarity index 100% rename from static/images/favicon-96x96.png rename to static/favicon-96x96.png diff --git a/static/images/favicon.ico b/static/favicon.ico similarity index 100% rename from static/images/favicon.ico rename to static/favicon.ico