meta: Update design and structure

This commit is contained in:
Jan Kremer 2025-04-26 14:54:33 +02:00
parent 10df7deea3
commit c184aad39e
Signed by: jan
GPG key ID: A7DA689CB3B078EC
15 changed files with 152 additions and 135 deletions

View file

@ -1,16 +1,20 @@
{{ define "main" }}
{{ .Content }}
{{ .Content }}
<div class="list">
<ul>
{{ range .Pages }}
<a href="{{ .RelPermalink }}" style="display: block">
<div class="list">
<li>
<a href="{{ .RelPermalink }}" style="display: block">
<h2>{{ .Title }}</h2>
<p class="lead">{{ .Description }}</p>
{{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Lastmod | time.Format ":date_long" }}
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
</div>
</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}