chill_hugoplate/themes/hugoplate/layouts/_default/baseof.html

48 lines
1.2 KiB
HTML
Raw Normal View History

2023-05-25 10:41:54 +00:00
<!DOCTYPE html>
<html
itemscope
lang="{{ site.LanguageCode | default `en-US` }}"
itemtype="http://schema.org/WebPage">
<head>
<!-- head (don't cache it) -->
{{ partial "essentials/head.html" . }}
2023-07-12 04:12:44 +00:00
2023-05-25 10:41:54 +00:00
<!-- style (always cache it) -->
{{ partialCached "essentials/style.html" . }}
</head>
<body>
<!-- cache partial only in production -->
{{ if hugo.IsProduction }}
{{ partialCached "preloader.html" . }}
{{ partialCached "gtm-noscript.html" . }}
{{ else }}
{{ partial "preloader.html" . }}
2023-07-12 04:12:44 +00:00
2023-05-25 10:41:54 +00:00
<!-- tailwind size indicator -->
2023-05-29 10:18:54 +00:00
{{ partial "components/tw-size-indicator.html" . }}
2023-05-25 10:41:54 +00:00
{{ end }}
<!-- header (don't cache it) -->
{{ partial "essentials/header.html" . }}
{{ partial "search-modal.html" (dict "Context" . ) }}
2023-07-12 04:12:44 +00:00
2023-05-25 10:41:54 +00:00
<main>
{{ block "main" . }}{{ end }}
</main>
<!-- cache partial only in production -->
{{ if hugo.IsProduction }}
{{ partialCached "essentials/footer.html" . }}
{{ partialCached "essentials/script.html" . }}
{{ else }}
{{ partial "essentials/footer.html" . }}
{{ partial "essentials/script.html" . }}
{{ end }}
</body>
</html>