mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 04:03:48 +01:00
4d552a9df5
* feat: article page widget support * refactor: get rid of article toolbar Same 3 column layout for article page and homepage * add missing space
21 lines
856 B
HTML
21 lines
856 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode }}">
|
|
<head>
|
|
{{- partial "head/head.html" . -}}
|
|
{{- block "head" . -}}{{ end }}
|
|
</head>
|
|
<body class="{{ block `body-class` . }}{{ end }}">
|
|
{{- partial "head/colorScheme" . -}}
|
|
{{- $hasWidget := default (gt (len .Site.Params.widgets.homepage) 0) (.Scratch.Get "hasWidget") -}}
|
|
<div class="container main-container flex on-phone--column {{ if $hasWidget }}extended{{ else }}compact{{ end }}">
|
|
{{- block "left-sidebar" . -}}
|
|
{{ partial "sidebar/left.html" . }}
|
|
{{- end -}}
|
|
<main class="main full-width">
|
|
{{- block "main" . }}{{- end }}
|
|
</main>
|
|
{{- block "right-sidebar" . -}}{{ end }}
|
|
</div>
|
|
{{ partial "footer/include.html" . }}
|
|
</body>
|
|
</html>
|