mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-23 01:21:04 +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" . }}
|
||||
</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" . }}
|
||||
<main class="main">
|
||||
<main class=" main">
|
||||
{{- block "main" . }}
|
||||
{{end }}
|
||||
</main>
|
||||
|
Loading…
Reference in New Issue
Block a user