* replace Bootstrap-based styling with Tailwind CSS * update theme compatibility for latest Hugo version * refactor templates and partials * fix outdated code and broken components * improve project structure and maintainability * optimize styling and frontend build setup
49 lines
1.1 KiB
HTML
Executable File
49 lines
1.1 KiB
HTML
Executable File
<!doctype html>
|
|
<html
|
|
itemscope
|
|
class="{{- if not site.Params.theme_switcher -}}
|
|
{{- site.Params.theme_default -}}
|
|
{{- end -}}"
|
|
lang="{{ site.Language.Locale | default `en-US` }}"
|
|
itemtype="http://schema.org/WebPage">
|
|
<head>
|
|
<!-- head (don't cache it) -->
|
|
{{ partial "essentials/head.html" . }}
|
|
|
|
|
|
<!-- style (always cache it) -->
|
|
{{ partialCached "essentials/style.html" . }}
|
|
|
|
</head>
|
|
|
|
<body class="flex flex-col min-h-screen">
|
|
<!-- cache partial only in production -->
|
|
{{ if hugo.IsProduction }}
|
|
{{ partialCached "preloader.html" . }}
|
|
{{ partialCached "gtm-noscript.html" . }}
|
|
{{ else }}
|
|
{{ partial "preloader.html" . }}
|
|
|
|
|
|
<!-- tailwind size indicator -->
|
|
{{ partial "components/tw-size-indicator.html" . }}
|
|
{{ end }}
|
|
|
|
|
|
<!-- header (don't cache it) -->
|
|
{{ partial "essentials/header.html" . }}
|
|
|
|
|
|
<main class="grow">
|
|
{{ block "main" . }}{{ end }}
|
|
</main>
|
|
|
|
<!-- footer -->
|
|
{{ partial "essentials/footer.html" . }}
|
|
|
|
|
|
<!-- script (always cache it) -->
|
|
{{/* {{ partialCached "essentials/script.html" . }} */}}
|
|
</body>
|
|
</html>
|