Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrmierzejewski/hugo-theme-console.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Mierzejewski <marcin@mierzejewski.net>2020-05-02 19:33:51 +0300
committerMarcin Mierzejewski <marcin@mierzejewski.net>2020-05-02 19:33:51 +0300
commit49427a6f508c791d6a0b3fc7690262206d2f87a0 (patch)
treebe108ceb5e766acca797313b9fdda8b3c976911a /layouts
parent99828eca0e62ce05bb6723b48d8a4e7fd3bd6736 (diff)
favicon: add favicons partials
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html8
-rw-r--r--layouts/partials/favicon.html1
-rw-r--r--layouts/partials/opengraph.html (renamed from layouts/opengraph.html)0
3 files changed, 3 insertions, 6 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