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

32 lines
886 B
HTML

{{ define "title" }}{{ .Site.Title }}{{ end }}
{{ define "main" }}
<main>
<article data-layout="prose">
<header>
<hgroup>
<h1>{{ .Site.Title }}</h1>
<p>{{ .Site.Params.description | default "An agent-first approach to web generation." }}</p>
</hgroup>
</header>
<section>
<h2>Recent</h2>
{{ range first 10 .Site.RegularPages }}
<article>
<header>
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<p data-text="dim">
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2006" }}</time>
{{ with .Params.eyebrow }} · {{ . }}{{ end }}
</p>
</header>
{{ with .Summary }}<p>{{ . }}</p>{{ end }}
</article>
{{ end }}
</section>
</article>
</main>
{{ end }}