Reduce the depth of the DOM and simplify the CSS a bit

Remove the main intermediate container. It wasn't acutally serving a purpose.
Remove some of the BEM-style classes that also weren't really doing anything.
This commit is contained in:
Eryn Wells 2024-10-13 23:13:16 -07:00
parent d17ec7f48f
commit 4c689f0f5c
8 changed files with 31 additions and 43 deletions

View file

@ -1,18 +1,16 @@
<!DOCTYPE html>
<html lang="{{ or site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
<head>
{{ partial "base/head.html" . }}
{{ block "head_css" . }}{{ end }}
{{- partial "base/head.html" . -}}
{{- block "head_css" . }}{{ end -}}
</head>
<body>
<header class="site-header">
{{ partial "site/header.html" . }}
</header>
<div class="body__container">
{{ block "main" . }}{{ end }}
<footer class="site-footer">
{{ partial "site/footer.html" . }}
</footer>
</div>
{{ block "main" . }}{{ end }}
<footer class="site-footer">
{{ partial "site/footer.html" . }}
</footer>
</body>
</html>