hugo-PaperMod/layouts/_default/baseof.html

18 lines
506 B
HTML

<!DOCTYPE html>
<html lang="{{ .Site.Language }}">
<head>
{{- partial "head.html" . }}
</head>
<body class="{{ if (and (eq .Kind `page` ) (ne .Layout `archives`)) }}single{{ else }}list
{{- if .IsHome }} home{{ end }}{{ end }}{{- if eq $.Site.Params.defaultTheme `dark` }} dark{{ end }}" id="top">
{{- partialCached "header.html" . .Page}}
<main class="main">
{{- block "main" . }}
{{- end }}
</main>
{{- partialCached "footer.html" . .Type }}
</body>
</html>