SetThemeAuto: disable auto theme set by default
- user needs to add
+ params:
SetThemeAuto: true
This commit is contained in:
parent
8a0783adfb
commit
338027b046
2 changed files with 5 additions and 1 deletions
|
|
@ -6,9 +6,11 @@
|
|||
</head>
|
||||
|
||||
<body class="{{ if eq .Kind `page` }}single{{ else }}list{{ if .IsHome }} home{{ end }}{{ end }}">
|
||||
{{- if $.Site.Params.SetThemeAuto -}}
|
||||
<script>
|
||||
setTheme();
|
||||
</script>
|
||||
{{- end -}}
|
||||
<header class="header">
|
||||
{{- partial "header.html" . }}
|
||||
</header>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue