lottotto e333fc6074 fix
2022-03-26 00:53:40 +09:00

35 lines
1.0 KiB
HTML

<!DOCTYPE html>
<html lang="{{ .Site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}">
<head>
{{- partial "head.html" . }}
</head>
<body class="
{{- if (or (ne .Kind `page` ) (eq .Layout `archives`) (eq .Layout `search`)) -}}
{{- print "list" -}}
{{- end -}}
{{- if eq $.Site.Params.defaultTheme `dark` -}}
{{- print " dark" }}
{{- end -}}
" id="top">
{{- partialCached "header.html" . .Page -}}
<main class="main">
{{- block "main" . }}{{ end }}
</main>
{{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") (.Param "ShowCodeCopyButtons") -}}
<script>
if (localStorage.getItem("pref-theme") == 'dark') {
theme = 'dark'
} else {
theme = ''
}
mermaidTextContents = Array.from(document.getElementsByClassName("language-mermaid")).map(value => value.innerHTML)
mermaid.initialize({ theme: theme, startOnLoad: true });
mermaid.init(undefined, '.language-mermaid');
</script>
</body>
</html>