add config for default theme

- ex.  defaultTheme: dark
This commit is contained in:
Aditya Telange 2020-07-23 04:27:51 +05:30
parent f09f18212e
commit 2955f2a19d
1 changed files with 3 additions and 2 deletions

View File

@ -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>