hugo-PaperMod/layouts/_default/baseof.html

28 lines
821 B
HTML
Raw Normal View History

{{- if lt hugo.Version "0.97.1" }}
{{- errorf "=> hugo v0.97.1 or greater is required for hugo-PaperMod to build " }}
{{- end -}}
<!DOCTYPE html>
<html lang="{{ site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}" {{ if (site.Params.stickyHeader) }}class="header-sticky"{{ end }}>
<head>
{{- partial "head.html" . }}
</head>
2020-11-28 18:03:57 +01:00
<body class="
{{- if (or (ne .Kind `page` ) (eq .Layout `archives`) (eq .Layout `search`)) -}}
2020-11-28 18:03:57 +01:00
{{- print "list" -}}
{{- end -}}
{{- if eq site.Params.defaultTheme `dark` -}}
2020-11-28 18:03:57 +01:00
{{- print " dark" }}
{{- end -}}
" id="top">
2021-03-30 14:37:36 +02:00
{{- partialCached "header.html" . .Page -}}
2020-08-21 17:43:13 +02:00
<main class="main">
2021-03-30 14:37:36 +02:00
{{- block "main" . }}{{ end }}
</main>
{{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") (.Param "ShowCodeCopyButtons") -}}
</body>
</html>