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>
This commit is contained in:
parent
9f5c077108
commit
e4b2094d96
60 changed files with 1181 additions and 3513 deletions
27
layouts/_default/list.html
Normal file
27
layouts/_default/list.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{{ 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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue