diff options
author | Francesco Tomaselli <tomaselli.fr@gmail.com> | 2025-04-29 22:18:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-29 22:18:41 +0200 |
commit | 9ca0f75006da623734fc2fcd9bc499b7e017a20c (patch) | |
tree | e7ddece3217587c3c41393e1f232fc4b296ebdbe | |
parent | 3024ed2b94f7fe4cbb061eda68228e7a617b8add (diff) | |
parent | 133fa3efe6a46c9fc93dd47631b619d051aac130 (diff) |
Merge pull request #130 from linh-n/main
fixes #129 double slash for favicons
-rw-r--r-- | layouts/partials/head.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 272a9ed..751abd2 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 }} |