mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 10:31:39 +01:00
add config for default theme
- ex. defaultTheme: dark
This commit is contained in:
parent
f09f18212e
commit
2955f2a19d
@ -5,9 +5,10 @@
|
|||||||
{{- partial "head.html" . }}
|
{{- partial "head.html" . }}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="{{ if eq .Kind `page` }}single{{ else }}list{{ if .IsHome }} home{{ end }}{{ end }}">
|
<body
|
||||||
|
class="{{ if eq .Kind `page` }}single{{ else }}list{{ if .IsHome }} home {{ end }}{{ end }}{{ if eq $.Site.Params.defaultTheme `dark` }} dark {{ end }}">
|
||||||
{{- partial "header.html" . }}
|
{{- partial "header.html" . }}
|
||||||
<main class="main">
|
<main class=" main">
|
||||||
{{- block "main" . }}
|
{{- block "main" . }}
|
||||||
{{end }}
|
{{end }}
|
||||||
</main>
|
</main>
|
||||||
|
Loading…
Reference in New Issue
Block a user