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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 1a7b56c..ccc21c2 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -50,14 +50,14 @@
{{ if .Site.Params.cachebuster }}
{{ $t := now.Unix }}
- <link rel="stylesheet" href="/css/{{ .Site.Params.theme }}-style.css?t={{$t}}">
+ <link rel="stylesheet" href="{{ .Site.BaseURL }}css/{{ .Site.Params.theme }}-style.css?t={{$t}}">
{{range .Site.Params.extracssfiles}}
<link rel="stylesheet" href="{{.}}?t={{$t}}">
{{ end }}
{{ else }}
- <link rel="stylesheet" href="/css/{{ .Site.Params.theme }}-style.css">
+ <link rel="stylesheet" href="{{ .Site.BaseURL }}css/{{ .Site.Params.theme }}-style.css">
{{range .Site.Params.extracssfiles}}
<link rel="stylesheet" href="{{.}}">
{{end}}
@@ -67,9 +67,9 @@
<!-- Icon -->
<link rel="shortcut icon"
{{ if .Site.Params.faviconfile }}
- href="/{{ .Site.Params.faviconfile }}"
+ href="{{ .Site.BaseURL }}{{ .Site.Params.faviconfile }}"
{{ else }}
- href="/img/favicon.ico"
+ href="{{ .Site.BaseURL }}img/favicon.ico"
{{ end }}
>