mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-25 20:11:37 +01:00
add config for default theme
- ex. defaultTheme: dark
This commit is contained in:
parent
f09f18212e
commit
2955f2a19d
@ -5,7 +5,8 @@
|
|||||||
{{- 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" . }}
|
||||||
|
Loading…
Reference in New Issue
Block a user