feat: updates
This commit is contained in:
@@ -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 }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user