asw/layouts/_default/list.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

26 lines
642 B
HTML

{{ define "main" }}
<main>
<article data-layout="prose">
<header>
<h1>{{ .Title }}</h1>
{{ with .Description }}<p>{{ . }}</p>{{ end }}
</header>
<section>
{{ range .Pages }}
<article>
<header>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p data-text="dim">
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2006" }}</time>
</p>
</header>
{{ with .Summary }}<p>{{ . }}</p>{{ end }}
</article>
{{ end }}
</section>
</article>
</main>
{{ end }}