feat: updates

This commit is contained in:
2025-08-17 22:09:53 +02:00
parent 998e955ec8
commit 8c0dc905d9
18 changed files with 869 additions and 776 deletions

View File

@@ -1,18 +1,16 @@
{{ define "main" }}
<section>
<h1>{{ .Title }}</h1>
{{ range .Pages.ByDate.Reverse }}
<article class="post-card">
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<div class="post-meta">
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
{{ with .Params.tags }}
· {{ range . }}<span class="tag">#{{ . }}</span>{{ end }}
{{ end }}
</div>
{{ with .Summary }}<p>{{ . }}</p>{{ end }}
</article>
{{ end }}
<h1 class="sr-only">{{ .Title }}</h1>
<ul class="grid grid-cols-1 gap-4">
{{ range .Pages.ByDate.Reverse }}
<li class="border border-ctp-surface1 rounded-xl bg-ctp-base/70 px-4 py-3">
<a class="flex items-baseline justify-between gap-4 no-underline text-inherit" href="{{ .RelPermalink }}">
<span class="font-semibold">{{ .Title }}</span>
<time class="text-sm text-ctp-subtext0" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time>
</a>
</li>
{{ end }}
</ul>
</section>
{{ end }}