summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinh Nguyen <linh@nguyen.be>2025-04-26 10:50:12 +0200
committerGitHub <noreply@github.com>2025-04-26 10:50:12 +0200
commit133fa3efe6a46c9fc93dd47631b619d051aac130 (patch)
treefa7a777293bfe834a7910cbac9068db07ba08085
parent4b94b8da8b92c2ceeb23d674c169977f22fc486e (diff)
Fix double slash for favicons
-rw-r--r--layouts/partials/head.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index f62f983..80b3fa4 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -6,11 +6,11 @@
{{ $faviconPath := (.Site.Params.faviconPath | default "" | absURL) }}
-<link rel="icon" type="image/ico" href="{{ $faviconPath }}/favicon.ico">
-<link rel="icon" type="image/png" sizes="16x16" href="{{ $faviconPath }}/favicon-16x16.png">
-<link rel="icon" type="image/png" sizes="32x32" href="{{ $faviconPath }}/favicon-32x32.png">
-<link rel="icon" type="image/png" sizes="192x192" href="{{ $faviconPath }}/android-chrome-192x192.png">
-<link rel="apple-touch-icon" sizes="180x180" href="{{ $faviconPath }}/apple-touch-icon.png">
+<link rel="icon" type="image/ico" href="{{ path.Join $faviconPath "favicon.ico" }}">
+<link rel="icon" type="image/png" sizes="16x16" href="{{ path.Join $faviconPath "favicon-16x16.png" }}">
+<link rel="icon" type="image/png" sizes="32x32" href="{{ path.Join $faviconPath "favicon-32x32.png" }}">
+<link rel="icon" type="image/png" sizes="192x192" href="{{ path.Join $faviconPath "android-chrome-192x192.png" }}">
+<link rel="apple-touch-icon" sizes="180x180" href="{{ path.Join $faviconPath "apple-touch-icon.png" }}">
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}