hugo-WonderMod/layouts/_default/baseof.html
Aditya Telange 338027b046 SetThemeAuto: disable auto theme set by default
- user needs to add
        + params:
             SetThemeAuto: true
2020-07-20 20:43:23 +05:30

33 lines
759 B
HTML

<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
{{- partial "head.html" . }}
</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>
<main class="main">
{{- block "main" . }}
{{end }}
</main>
<footer class="footer">
{{- partial "footer.html" . }}
</footer>
{{ $highlight := resources.Get "highlight.min.js" | minify }}
<script src="{{ $highlight.Permalink }}"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
</body>
</html>