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

github.com/qqhann/hugo-primer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordodowhat <44317355+dodowhat@users.noreply.github.com>2021-02-25 04:59:06 +0300
committerGitHub <noreply@github.com>2021-02-25 04:59:06 +0300
commit0bd194b546ace65788294ea6780a6fe565f4f0c9 (patch)
tree68ca01f0becf05cca64963d5eb1051e6db2e396c
parent4ae78be3508ff5064d9e64069568635bdf68cc36 (diff)
Let icon urls contain baseURL
Let the icon urls generated by useIcon start with baseURL
-rw-r--r--layouts/_default/baseof.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 3bd42fc..d30ec7d 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -25,9 +25,9 @@
<meta name="apple-mobile-web-app-title" content="{{ .Site.Title }}">
<!-- favicon & touch-icon -->
{{ if .Site.Params.UseIcon }}
- <link rel="icon" href="/favicon-64.png">
- <link rel="apple-touch-icon" href="/apple-touch-icon.png">
- <link rel="mask-icon" size="any" href="/pinned-icon.svg">
+ <link rel="icon" href="{{ .Site.BaseURL }}favicon-64.png">
+ <link rel="apple-touch-icon" href="{{ .Site.BaseURL }}apple-touch-icon.png">
+ <link rel="mask-icon" size="any" href="{{ .Site.BaseURL }}pinned-icon.svg">
{{ end }}
<!-- Twitter Card -->
{{ if .Site.Params.UseTwitterCard }}