Move header and footer outside the container.

Header and footer can be wrapped in a separate div.container if your header and footer patter need to be inside a container class.
This commit is contained in:
2026-04-15 17:34:07 -04:00
committed by Alexander
parent e5a78b1571
commit 11bc4f438f
3 changed files with 99 additions and 100 deletions

View File

@@ -38,6 +38,8 @@
<li><a href="./?p=status">Status</a></li> <li><a href="./?p=status">Status</a></li>
</ul> </ul>
</nav> </nav>
</div>
<div class="container">
<p class="info-switches"><span></span><span id="deprecated" role="switch"></span> <p class="info-switches"><span></span><span id="deprecated" role="switch"></span>
<label for="deprecated">Show deprecated patterns</label><span></span><span id="breakpoints" role="switch"></span> <label for="deprecated">Show deprecated patterns</label><span></span><span id="breakpoints" role="switch"></span>
<label for="breakpoints">Show breakpoint information</label> <label for="breakpoints">Show breakpoint information</label>

View File

@@ -74,20 +74,14 @@ html(lang= lang )
a.skip(href="#main") Skip to main content a.skip(href="#main") Skip to main content
block top block header
div.container div.container
block body-top
block header
main#main main#main
h1= site h1= site
each category in content each category in content
+show-content(category, "") +show-content(category, "")
block body-bottom
block footer block footer
block bottom
script(src="assets/scaffolding-min.js") script(src="assets/scaffolding-min.js")

View File

@@ -8,14 +8,17 @@ block head
link(rel="icon" href="https://assets.gamv.ca/favicon-dark.svg" media="(prefers-color-scheme:dark)") link(rel="icon" href="https://assets.gamv.ca/favicon-dark.svg" media="(prefers-color-scheme:dark)")
block header block header
include patterns/core/header/_header.pug div.container
include patterns/core/header/_header.pug
nav nav
ul ul
each first in content each first in content
li(class= navClass) li(class= navClass)
a(href="./?p=" + first.name.toPath() )= first.name.toContent().toSentenceCase() a(href="./?p=" + first.name.toPath() )= first.name.toContent().toSentenceCase()
block body-top
p.info-switches p.info-switches
span span
span#deprecated(role="switch") span#deprecated(role="switch")