fix: homepage template — render content directly, no article wrapper

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ludo 2026-04-11 21:27:17 +02:00
parent aaf60139e3
commit c469e69750
Signed by: ludo
GPG key ID: F6E479DEFAB84D6E

View file

@ -1,28 +1,3 @@
{{ define "content" }} {{ define "content" }}
<article> {{ .Content }}
<header>
<h1>{{ .Site.Title }}</h1>
<p>{{ .Site.Params.description | default "An agent-first approach to web generation." }}</p>
</header>
{{ .Content }}
<section>
<h2>Recent</h2>
{{ range first 10 .Site.RegularPages }}
<article>
<header>
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
{{- if not .Date.IsZero }}
<p data-text="dim">
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2006" }}</time>
{{- with .Params.eyebrow }} · {{ . }}{{ end }}
</p>
{{- end }}
</header>
{{- with .Description }}<p>{{ . }}</p>{{ end }}
</article>
{{ end }}
</section>
</article>
{{ end }} {{ end }}