mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
Startseite: fast ferting
This commit is contained in:
@@ -2,20 +2,39 @@
|
||||
{{ $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 }}
|
||||
<div class="flex flex-row mb-1.5">
|
||||
<div class="grow-0 shrink-0 w-[12rem] flex flex-col">
|
||||
{{ if $r.References }}
|
||||
<div class="text-sm font-sans px-2 py-1 bg-stone-100">{{ $r.References }}</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<div class="font-sans py-0.5 text-xs">
|
||||
<a href="/reihe/?={{ $r.Id }}" class="no-underline rounded bg-stone-100 px-1.5">
|
||||
<i class="ri-links-line"></i> Permalink
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grow-0 ml-8 -indent-3">
|
||||
<span class="font-bold">{{ $r.Title }}</span>
|
||||
{{ if $r.Annotation }}
|
||||
<span> · </span>
|
||||
<span class="">{{ Safe $r.Annotation }}</span>
|
||||
{{ end }}
|
||||
<div class="ml-3">
|
||||
{{ $bds := index $model.relations $r.Id }}
|
||||
{{ if $bds }}
|
||||
{{ range $_, $rel := $bds }}
|
||||
{{ $bd := index $model.entries $rel.Entry }}
|
||||
{{ if $bd }}
|
||||
<a href="/almanach/{{ $bd.MusenalmID }}">
|
||||
{{ if ne $bd.Year 0 }}
|
||||
{{ $bd.Year }}
|
||||
{{ else }}
|
||||
[o.J.]
|
||||
{{ end }} </a
|
||||
> 
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user