{{- if lt hugo.Version "0.146.0" }} {{- errorf "=> hugo v0.146.0 or greater is required for hugo-PaperMod to build " }} {{- end -}} {{- $theme := site.Params.defaultTheme | default "auto" }} {{- if eq $theme "dark" }} {{- else if eq $theme "light" }} {{- else }} {{- end }}
{{- partial "head.html" . }} {{- if (or (ne .Kind `page` ) (eq .Layout `archives`) (eq .Layout `search`)) }} {{- else }} {{- end }} {{ partialCached "header.html" . .Page -}}