All templates now follow: body > nav > article > header + content + footer Removed: - <hgroup> (redundant, header+h1+p serves same purpose) - <main> (article is the content landmark) - role="main" on article (incorrect ARIA) - header block in baseof (header now inside article) Standardized: default, docs, essay, notes, console, page, list, index. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
55 lines
1.3 KiB
HTML
55 lines
1.3 KiB
HTML
{{ define "content" }}
|
|
<section data-layout="docs">
|
|
|
|
<nav aria-label="Documentation" data-nav="sidebar">
|
|
{{- $top := .FirstSection -}}
|
|
{{- range $top.Sections.ByWeight -}}
|
|
<h3>{{ .Title }}</h3>
|
|
<ul>
|
|
{{- range .RegularPages.ByWeight -}}
|
|
<li>
|
|
<a href="{{ .RelPermalink }}"
|
|
{{- if eq .RelPermalink $.RelPermalink }} aria-current="page"{{ end -}}>
|
|
{{- .LinkTitle -}}
|
|
</a>
|
|
</li>
|
|
{{- end -}}
|
|
</ul>
|
|
{{- end -}}
|
|
</nav>
|
|
|
|
<article>
|
|
<header>
|
|
<h1>{{ .Title }}</h1>
|
|
{{- with .Description }}
|
|
<p>{{ . }}</p>
|
|
{{- end }}
|
|
</header>
|
|
|
|
{{ .Content }}
|
|
|
|
{{- if or .PrevInSection .NextInSection -}}
|
|
<footer>
|
|
{{- with .NextInSection -}}
|
|
<a href="{{ .RelPermalink }}" rel="prev">
|
|
<span aria-hidden="true">←</span> {{ .LinkTitle }}
|
|
</a>
|
|
{{- end -}}
|
|
{{- with .PrevInSection -}}
|
|
<a href="{{ .RelPermalink }}" rel="next">
|
|
{{ .LinkTitle }} <span aria-hidden="true">→</span>
|
|
</a>
|
|
{{- end -}}
|
|
</footer>
|
|
{{- end -}}
|
|
</article>
|
|
|
|
{{- with .TableOfContents -}}
|
|
<aside data-toc>
|
|
<h3>{{ i18n "onThisPage" | default "On this page" }}</h3>
|
|
{{ . }}
|
|
</aside>
|
|
{{- end -}}
|
|
|
|
</section>
|
|
{{ end }}
|