Content-Update mit Fix für dynamische Templates

This commit is contained in:
2025-05-10 19:02:17 +02:00
parent 78944073e0
commit 86615e280f
15 changed files with 568 additions and 0 deletions

19
templates/list.html Normal file
View File

@@ -0,0 +1,19 @@
{{ define "body" }}
<ul class="post-list">
{{ range .Articles }}
<li>
<a class="card no-underline" href="/post/{{ .Slug }}">
{{ if .Cover }}
<img src="{{ .Cover }}" alt="">
{{ else }}
<img src="/static/img/placeholder.webp" alt="">
{{ end }}
<div class="card-content">
<h2>{{ .Title }}</h2>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02.01.2006" }}</time>
</div>
</a>
</li>
{{ end }}
</ul>
{{ end }}