apotheke/layouts/_default/baseof.html
2024-05-27 23:13:51 +02:00

21 lines
719 B
HTML

<!DOCTYPE html>
<html lang="en">
{{- $avatarImgSrc := .Site.Params.AvatarURL -}}
{{- if and (isset site.Params "avatarURL") (not (hasPrefix $avatarImgSrc "http")) -}}
{{- $avatarImgSrc = (urls.JoinPath $.Site.BaseURL ($.Site.Params.AvatarURL | default "")) -}}
{{- end -}}
{{- .Scratch.Set "avatarImgSrc" $avatarImgSrc -}}
{{- partial "head.html" . -}}
<body>
<script type="text/javascript">
// Immediately set theme on page load
setThemeByUserPref();
</script>
{{- partial "header.html" . -}}
<main id="content">
{{- block "main" . }}{{- end }}
</main>
{{- partial "footer.html" . -}}
</body>
</html>