garden/layouts/_default/list.html
Vigilio Desto e4b2094d96
Cards as default list template — all sections render as card grids
list.html: each page becomes a data-card with tag header, title,
summary excerpt, and date footer. Used for /writings/, /tags/*, etc.

Card styling refined: uppercase category header, date in footer,
dimmed summary text.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 18:07:22 +02:00

27 lines
707 B
HTML

{{ define "main" }}
<section>
<header>
<h1>{{ .Title }}</h1>
{{- with .Description }}<p data-text="dim">{{ . }}</p>{{- end }}
</header>
<div data-layout="card-grid">
{{- range .Pages }}
<article data-card>
{{- with .Params.tags }}
<header>{{ index . 0 }}</header>
{{- end }}
<h4><a href="{{ .RelPermalink }}">{{ .Title }}</a></h4>
{{- with .Summary }}
<p>{{ . | plainify | truncate 140 }}</p>
{{- end }}
{{- if not .Date.IsZero }}
<footer>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
</footer>
{{- end }}
</article>
{{- end }}
</div>
</section>
{{ end }}