From 49427a6f508c791d6a0b3fc7690262206d2f87a0 Mon Sep 17 00:00:00 2001 From: Marcin Mierzejewski Date: Sat, 2 May 2020 18:33:51 +0200 Subject: [PATCH] favicon: add favicons partials --- layouts/_default/baseof.html | 8 ++------ layouts/partials/favicon.html | 1 + layouts/{ => partials}/opengraph.html | 0 static/hugo-theme-console/css/console.css | 3 ++- 4 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 layouts/partials/favicon.html rename layouts/{ => partials}/opengraph.html (100%) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e4c5145..0fa4cc4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -18,15 +18,11 @@ ` | safeHTML }} - - - - - + {{- partial "favicon.html" . -}} {{ with .OutputFormats.Get "RSS" }} {{ printf `` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} {{ end }} - {{ template "opengraph.html" . }} + {{- partial "opengraph.html" . -}} {{ template "_internal/twitter_cards.html" . }} {{ template "_internal/google_analytics.html" . }} diff --git a/layouts/partials/favicon.html b/layouts/partials/favicon.html new file mode 100644 index 0000000..01ad2f9 --- /dev/null +++ b/layouts/partials/favicon.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/opengraph.html b/layouts/partials/opengraph.html similarity index 100% rename from layouts/opengraph.html rename to layouts/partials/opengraph.html diff --git a/static/hugo-theme-console/css/console.css b/static/hugo-theme-console/css/console.css index b2449ec..b749d7a 100644 --- a/static/hugo-theme-console/css/console.css +++ b/static/hugo-theme-console/css/console.css @@ -237,7 +237,8 @@ figure { margin-right: 30px; } .post-list-date { - display: none; + width: 0; + overflow: hidden; } .footer {