42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
<!doctype html>
|
|
<html lang="{{ site.LanguageCode }}">
|
|
<head>
|
|
{{ block "title" . }}
|
|
<title>
|
|
{{ if .IsHome }}
|
|
{{ $.Site.Title }}{{ with $.Site.Params.Subtitle }}- {{ . }}{{ end }}
|
|
{{ else }}
|
|
{{ .Title }} ::
|
|
{{ $.Site.Title }}{{ with $.Site.Params.Subtitle }}- {{ . }}{{ end }}
|
|
{{ end }}
|
|
</title>
|
|
{{ end }}
|
|
{{ partial "head.html" . }}
|
|
</head>
|
|
<body
|
|
class="flex flex-col h-screen m-auto leading-7 max-w-7xl px-6 sm:px-14 md:px-24 lg:px-32 text-lg bg-black text-white">
|
|
{{ partial "header.html" . }}
|
|
<main class="grow">
|
|
{{ block "main" . }}
|
|
{{ end }}
|
|
</main>
|
|
{{ partial "footer.html" . }}
|
|
{{ with resources.Get "js/registerLauti.js" }}
|
|
{{$opts := dict
|
|
"minify" (not hugo.IsDevelopment)
|
|
"sourceMap" (cond hugo.IsDevelopment "external" "")
|
|
"targetPath" "js/main.js"
|
|
}}
|
|
{{ with . | js.Build $opts }}
|
|
{{ if hugo.IsDevelopment }}
|
|
<script src="{{ .RelPermalink }}"></script>
|
|
{{ else }}
|
|
{{ with . | fingerprint }}
|
|
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</body>
|
|
</html>
|