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

github.com/josephhutch/aether.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Hutchinson <hutch7995@gmail.com>2020-07-14 03:09:00 +0300
committerJoe Hutchinson <hutch7995@gmail.com>2020-07-14 03:09:00 +0300
commit77dbbb025499ee602303747d2d9e6afbe3015570 (patch)
tree32d2f31d25da3a9c83f305c9276b6f1e1030518c
parent436ce6771cf339235e37504e629a756a7d199af8 (diff)
Fix favicons not respecting base URL
-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 0d319f7..426b21d 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -5,19 +5,19 @@
<title>{{ if not .IsHome }}{{with .Title }}{{ . }} &middot; {{ end }}{{ end }}{{ .Site.Title }}</title>
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
{{ if (fileExists "static/apple-touch-icon.png") -}}
- <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ "/apple-touch-icon.png" | absURL }}">
{{ end -}}
{{ if (fileExists "static/favicon-32x32.png") -}}
- <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="{{ "/favicon-32x32.png" | absURL }}">
{{ end -}}
{{ if (fileExists "static/favicon-16x16.png") -}}
- <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="{{ "/favicon-16x16.png" | absURL }}">
{{ end -}}
{{ if (fileExists "static/site.webmanifest") -}}
- <link rel="manifest" href="/site.webmanifest">
+ <link rel="manifest" href="{{ "/site.webmanifest" | absURL }}">
{{ end -}}
{{ if (fileExists "static/safari-pinned-tab.svg") -}}
- <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
+ <link rel="mask-icon" href="{{ "/safari-pinned-tab.svg" | absURL }}" color="#5bbad5">
{{ end -}}
{{ if (fileExists "layouts/partials/twitter.html") -}}
{{ partial "twitter.html" . }}