asw/layouts/_default/single.html
Vigilio Desto 169374e2fd
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)
2026-04-10 20:17:50 +02:00

25 lines
688 B
HTML

{{ define "main" }}
<main>
<article data-layout="prose">
<header>
<hgroup>
{{ with .Params.eyebrow }}<p data-text="eyebrow">{{ . }}</p>{{ end }}
<h1>{{ .Title }}</h1>
{{ with .Description }}<p>{{ . }}</p>{{ end }}
</hgroup>
<p data-text="dim">
<time datetime="{{ .Date.Format `2006-01-02` }}">{{ .Date.Format "January 2006" }}</time>
{{ with .Params.author }} · {{ . }}{{ end }}
</p>
</header>
{{ .Content }}
<footer>
<small>{{ with .Params.footer }}{{ . }}{{ else }}Published in the dorveille.{{ end }}</small>
</footer>
</article>
</main>
{{ end }}