<!DOCTYPE html>
{{ $defaultColor := .Site.Params.defaultColor | default "auto" }}
{{ if eq $defaultColor "dark" }}
<html lang="{{ .Site.LanguageCode }}" class="dark">
{{ else if eq $defaultColor "light" }}
<html lang="{{ .Site.LanguageCode }}" class="light">
{{ else }}
<html lang="{{ .Site.LanguageCode }}">
{{ end }}
{{ partial "head.html" . }}

<body data-theme="{{ $defaultColor }}">
    {{ partial "scripts.html" . }}
    {{ partial "nav.html" . }}
    {{ block "main" . }}{{ end }}
    {{ partial "footer.html" . }}
</body>
</html>
