landmark structure: header/main/footer as direct children of body
Per Pico CSS landmark pattern and HTML5 spec: - Site <header> with <nav> moved to baseof.html - Site <footer> moved to baseof.html - All section layouts (single, list, docs, paper, vault, index) now only define <main> content — no duplicate nav/footer - Article <header> stays inside <article> (different semantic role)
This commit is contained in:
parent
2df2c67018
commit
169374e2fd
7 changed files with 6 additions and 36 deletions
|
|
@ -4,6 +4,12 @@
|
|||
{{- partial "head.html" . -}}
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
{{ partial "nav.html" . }}
|
||||
</header>
|
||||
{{ block "main" . }}{{ end }}
|
||||
<footer>
|
||||
<small><a href="/">{{ .Site.Title }}</a> · {{ now.Format "2006" }}</small>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
<main>
|
||||
<article data-layout="prose">
|
||||
|
||||
|
|
@ -25,8 +23,4 @@
|
|||
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<small><a href="/">{{ .Site.Title }}</a> · {{ now.Format "2006" }}</small>
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
<main>
|
||||
<article data-layout="prose">
|
||||
|
||||
|
|
@ -24,8 +22,4 @@
|
|||
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<small><a href="/">{{ .Site.Title }}</a> · {{ .Date.Format "2006" }}</small>
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
<main>
|
||||
<div data-layout="docs">
|
||||
|
||||
|
|
@ -106,8 +104,4 @@
|
|||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<small><a href="/">{{ .Site.Title }}</a> · {{ now.Format "2006" }}</small>
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
{{ define "title" }}{{ .Site.Title }}{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
<main>
|
||||
<article data-layout="prose">
|
||||
|
||||
|
|
@ -31,8 +29,4 @@
|
|||
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<small><a href="/">{{ .Site.Title }}</a> · {{ now.Format "2006" }}</small>
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
<main>
|
||||
<article data-paper>
|
||||
|
||||
|
|
@ -58,8 +56,4 @@
|
|||
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<small><a href="/">{{ .Site.Title }}</a> · {{ .Date.Format "2006" }}</small>
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
<main>
|
||||
<div data-layout="docs">
|
||||
|
||||
|
|
@ -112,8 +110,4 @@
|
|||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<small><a href="/">{{ .Site.Title }}</a> · {{ now.Format "2006" }}</small>
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue