baseof.html 1.1 KB

12345678910111213141516171819202122232425262728
  1. <!DOCTYPE html>
  2. <html lang="{{ .Site.LanguageCode }}" dir="{{ default `ltr` .Language.LanguageDirection }}">
  3. <head>
  4. {{- partial "head/head.html" . -}}
  5. {{- block "head" . -}}{{ end }}
  6. </head>
  7. <body class="{{ block `body-class` . }}{{ end }}">
  8. {{- partial "head/colorScheme" . -}}
  9. {{/* The container is wider when there's any activated widget */}}
  10. {{- $hasWidget := false -}}
  11. {{- range .Site.Params.widgets -}}
  12. {{- if gt (len .) 0 -}}
  13. {{- $hasWidget = true -}}
  14. {{- end -}}
  15. {{- end -}}
  16. <div class="container main-container flex on-phone--column {{ if $hasWidget }}extended{{ else }}compact{{ end }}">
  17. {{- block "left-sidebar" . -}}
  18. {{ partial "sidebar/left.html" . }}
  19. {{- end -}}
  20. <main class="main full-width">
  21. {{- block "main" . }}{{- end }}
  22. </main>
  23. {{- block "right-sidebar" . -}}{{ end }}
  24. </div>
  25. {{ partial "footer/include.html" . }}
  26. </body>
  27. </html>