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:
authorDmitry Verkhoturov <paskal.07@gmail.com>2018-03-25 18:08:39 +0300
committerVicky Lai <vicky@vickylai.io>2018-03-25 18:08:39 +0300
commitf4568a45894f302b368e52fe82958ee0964dca9a (patch)
tree7d107dccbefcb5e7e10f1583a70ff2cfc458febe /layouts/partials/header.html
parenta459b3808f674e97ac142d74584d750d151e6b11 (diff)
set default if no configuration is set for variables which require that (#36)
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 951bfc7..c8eb9ee 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -46,14 +46,14 @@ crossorigin="anonymous"></script>
{{ if .Site.Params.cacheBuster }}
{{ $t := now.Unix }}
- <link rel="stylesheet" href="css/{{ .Site.Params.themeStyle }}-style.css?t={{$t}}">
+ <link rel="stylesheet" href="css/{{ .Site.Params.themeStyle | default "dark" }}-style.css?t={{$t}}">
{{range .Site.Params.extraCSSFiles}}
<link rel="stylesheet" href="{{.}}?t={{$t}}">
{{ end }}
{{ else }}
- <link rel="stylesheet" href="css/{{ .Site.Params.themeStyle }}-style.css">
+ <link rel="stylesheet" href="css/{{ .Site.Params.themeStyle | default "dark" }}-style.css">
{{range .Site.Params.extraCSSFiles}}
<link rel="stylesheet" href="{{.}}">
{{end}}