The baseof.html
template defines the underlying structure of the site theme. All other templates layer on top of baseof.html
at build time.
Source code #
<!DOCTYPE html>
<html lang="{{ or site.Language.LanguageCode site.Language.Lang }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
<head>
{{ partial "head.html" . }}
</head>
<body class="bg-white">
<header>
{{- partial "header.html" . -}}
</header>
{{- block "top-bar" . -}}{{- end -}}
<main class="2xl:max-w-screen-2xl p-2 mx-auto flex">
{{- block "sidebar-left" . -}}{{- end -}}
<div id="pageContainer" class="p-4 w-full md:w-3/5 mx-auto">
{{- if eq .Kind "page" -}}{{- partial "article/summarization.html" . -}}{{- end -}}
{{- if .IsHome}}{{ block "home" . }}{{ end }}{{- end}}
{{ block "breadcrumbs" . }}{{- end -}}
{{ block "content" . }}{{- end -}}
{{ block "innerFooter" . }}{{- end -}}
</div>
{{- partial "searchResultsContainer.html" . -}}
{{- block "sidebar-right" . -}}{{- end -}}
</main>
<footer>
{{- partial "footer.html" . -}}
</footer>
</body>
</html>