This commit is contained in:
ryfrd 2026-03-18 20:32:25 +00:00
parent 6623ee03f6
commit 44c8324063
120 changed files with 22842 additions and 4673 deletions

View file

@ -1,4 +1,20 @@
{{ define "main" }} {{ range where site.RegularPages "Type" "in"
site.Params.mainSections }}
<a href="{{ .RelPermalink}}">{{ .Title }}</a>
{{ end }} {{ end }}
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ $years := .Pages.GroupByDate "2006" }}
<ul class="year-list">
{{ range $years }}
<li>
<span class="year">{{ .Key }}</span>
<ul class="post-list">
{{ range .Pages }}
<li>
<time>{{ .Date.Format "Jan 2" }}</time>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
</li>
{{ end }}
</ul>
{{ end }}