mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 04:03:48 +01:00
ae497c4789
Co-authored-by: Luguoba <80254980+luguoba@users.noreply.github.com>
28 lines
1.1 KiB
HTML
28 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode }}" dir="{{ default `ltr` .Language.LanguageDirection }}">
|
|
<head>
|
|
{{- partial "head/head.html" . -}}
|
|
{{- block "head" . -}}{{ end }}
|
|
</head>
|
|
<body class="{{ block `body-class` . }}{{ end }}">
|
|
{{- partial "head/colorScheme" . -}}
|
|
|
|
{{/* The container is wider when there's any activated widget */}}
|
|
{{- $hasWidget := false -}}
|
|
{{- range .Site.Params.widgets -}}
|
|
{{- if gt (len .) 0 -}}
|
|
{{- $hasWidget = true -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
<div class="container main-container flex on-phone--column {{ if $hasWidget }}extended{{ else }}compact{{ end }}">
|
|
{{- block "left-sidebar" . -}}
|
|
{{ partial "sidebar/left.html" . }}
|
|
{{- end -}}
|
|
{{- block "right-sidebar" . -}}{{ end }}
|
|
<main class="main full-width">
|
|
{{- block "main" . }}{{- end }}
|
|
</main>
|
|
</div>
|
|
{{ partial "footer/include.html" . }}
|
|
</body>
|
|
</html>
|