hugo-PaperMod/layouts/_default/baseof.html
Jake Bailey 7cf752f864
Some checks failed
Deploy Hugo PaperMod Demo to Pages / build (push) Has been cancelled
Deploy Hugo PaperMod Demo to Pages / deploy (push) Has been cancelled
Implement fixes for refreshed template system for Hugo v0.146.0+ (#1726)
2025-04-20 11:46:23 +05:30

27 lines
757 B
HTML

{{- if lt hugo.Version "0.146.0" }}
{{- errorf "=> hugo v0.146.0 or greater is required for hugo-PaperMod to build " }}
{{- end -}}
<!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") -}}
</body>
</html>