Personen DB Abfragen + Seiten

This commit is contained in:
Simon Martens
2025-02-15 23:33:15 +01:00
parent 0aa8511ef0
commit e8edefa4b4
28 changed files with 949 additions and 65 deletions

View File

@@ -0,0 +1,21 @@
{{ $model := index . 0 }}
{{ $r := index . 1 }}
<a href="/reihe/{{ $r.MusenalmID }}">{{ $r.Title }}</a>
<div>
{{ Safe $r.Annotation }}
</div>
<div>
{{ $bds := index $model.relations $r.Id }}
{{ if $bds }}
{{ range $_, $rel := $bds }}
{{ $bd := index $model.entries $rel.Entry }}
{{ if $bd }}
<div>
<a href="/almanach/{{ $bd.MusenalmID }}">{{ $bd.Year }}</a>
</div>
{{ end }}
{{ end }}
{{ end }}
</div>