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>
26 lines
610 B
HTML
26 lines
610 B
HTML
{{ define "content" }}
|
|
<article>
|
|
<header>
|
|
<h1>{{ .Title }}</h1>
|
|
{{- with .Description }}
|
|
<p>{{ . }}</p>
|
|
{{- end }}
|
|
</header>
|
|
|
|
{{ .Content }}
|
|
|
|
{{ range .Pages }}
|
|
<article>
|
|
<header>
|
|
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
|
{{- if not .Date.IsZero }}
|
|
<p data-text="dim">
|
|
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2006" }}</time>
|
|
</p>
|
|
{{- end }}
|
|
</header>
|
|
{{- with .Description }}<p>{{ . }}</p>{{ end }}
|
|
</article>
|
|
{{ end }}
|
|
</article>
|
|
{{ end }}
|