finale Anpassung

This commit is contained in:
2025-05-04 17:10:38 +02:00
parent eb2d05f082
commit a1471fc310
9 changed files with 386 additions and 193 deletions

View File

@@ -1,7 +1,5 @@
{{ define "title" }}Alle Artikel{{ end }}
{{ define "body" }}
<ul class="post-list" style="list-style:none; padding:0; display:grid; gap:var(--gap);">
<ul class="post-list">
{{ range . }}
<li>
<a class="card" href="/post/{{ .Slug }}">
@@ -10,7 +8,7 @@
{{ else }}
<img src="/static/img/placeholder.png" alt="">
{{ end }}
<div>
<div class="card-content">
<h2>{{ .Title }}</h2>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02.01.2006" }}</time>
</div>
@@ -19,5 +17,3 @@
{{ end }}
</ul>
{{ end }}
{{ define "list" }}{{ template "layout" . }}{{ end }}