Move the <main> element inside the "main" template block

Do this so each template can set the class of the main block according to what
kind of template it is.
This commit is contained in:
Eryn Wells 2024-07-23 08:45:04 -07:00
parent 293d4b0748
commit 8b834f8eab
4 changed files with 13 additions and 3 deletions

View file

@ -9,9 +9,7 @@
{{ partial "site/header.html" . }}
</header>
<div class="body__container">
<main>
{{ block "main" . }}{{ end }}
</main>
{{ block "main" . }}{{ end }}
<footer class="site-footer">
{{ partial "site/footer.html" . }}
</footer>

View file

@ -0,0 +1,4 @@
{{ define "main" }}
<main class="main--list">
</main>
{{ end }}

View file

@ -0,0 +1,4 @@
{{ define "main" }}
<main class="main--single">
</main>
{{ end }}

View file

@ -0,0 +1,4 @@
{{ define "main" }}
<main class="main--list">
</main>
{{ end }}