mirror of
https://github.com/tomfran/typo.git
synced 2025-04-25 21:19:55 +03:00
41 lines
839 B
HTML
41 lines
839 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ or site.Language.LanguageCode site.Language.Lang }}"
|
|
dir="{{ or site.Language.LanguageDirection `ltr` }}">
|
|
|
|
<head>
|
|
{{ partial "head.html" . }}
|
|
</head>
|
|
|
|
{{ $theme := "auto"}}
|
|
|
|
{{ with .Param "theme" }}
|
|
{{ $theme = .}}
|
|
{{ end }}
|
|
|
|
<body class="{{ $theme }}">
|
|
|
|
<div class="content">
|
|
<header>
|
|
{{ partial "header.html" . }}
|
|
</header>
|
|
|
|
<main class="main">
|
|
{{ block "main" . }}{{ end }}
|
|
</main>
|
|
</div>
|
|
|
|
{{/* Body end hook */}}
|
|
{{ partial "functions/get_hook.html" (dict "hook" "body_end" "context" .) }}
|
|
|
|
<footer>
|
|
{{ partial "footer.html" . }}
|
|
</footer>
|
|
|
|
{{ if .Param "math" }}
|
|
{{ partialCached "math.html" . }}
|
|
{{ end }}
|
|
</body>
|
|
|
|
<script src="{{ "js/theme-switch.js" | relURL }}"></script>
|
|
<script defer src="{{ "js/copy-code.js" | relURL }}"></script>
|
|
</html>
|