diff options
author | Marcin Mierzejewski <marcin@mierzejewski.net> | 2020-05-02 19:33:51 +0300 |
---|---|---|
committer | Marcin Mierzejewski <marcin@mierzejewski.net> | 2020-05-02 19:33:51 +0300 |
commit | 49427a6f508c791d6a0b3fc7690262206d2f87a0 (patch) | |
tree | be108ceb5e766acca797313b9fdda8b3c976911a | |
parent | 99828eca0e62ce05bb6723b48d8a4e7fd3bd6736 (diff) |
favicon: add favicons partials
-rw-r--r-- | layouts/_default/baseof.html | 8 | ||||
-rw-r--r-- | layouts/partials/favicon.html | 1 | ||||
-rw-r--r-- | layouts/partials/opengraph.html (renamed from layouts/opengraph.html) | 0 | ||||
-rw-r--r-- | static/hugo-theme-console/css/console.css | 3 |
4 files changed, 5 insertions, 7 deletions
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 @@ <![endif]--> ` | safeHTML }} - <link rel="shortcut icon" href="{{ "img/favicon.ico" | absURL }}"> - <link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png"> - <link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png"> - <link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png"> - <link rel="manifest" href="/img/site.webmanifest"> + {{- partial "favicon.html" . -}} {{ with .OutputFormats.Get "RSS" }} {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} {{ end }} - {{ template "opengraph.html" . }} + {{- partial "opengraph.html" . -}} {{ template "_internal/twitter_cards.html" . }} {{ template "_internal/google_analytics.html" . }} </head> 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 index 23aa06a..23aa06a 100644 --- a/layouts/opengraph.html +++ b/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 { |