Initial media index

This commit is contained in:
2024-11-02 04:49:43 +02:00
parent e23b5e94af
commit ce4b17ac2a
5 changed files with 37 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
{{ define "main" }}
<section class="mb-8">
<div class="container flex flex-col gap-5">
{{ $sections := slice . }}
{{ if .Sections }}
{{ $sections = .Sections.ByDate.Reverse }}
{{ end }}
{{ range $sections }}
<div>
<div>
<h1><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
</div>
<div class="flex flex-col">
{{ range .RegularPages.ByDate }}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ end }}
</div>
</div>
{{ end }}
</div>
</section>
{{ end }}