Lots of stuff

This commit is contained in:
Simon Martens
2025-06-24 18:20:06 +02:00
parent 3127446dab
commit 9563145aeb
29 changed files with 1694 additions and 1386 deletions

View File

@@ -30,9 +30,18 @@
</div>
<div class="text flex flex-row print:flex-col">
{{- Safe (ParseGeneric .text.Content) -}}
{{- Safe $model.text -}}
</div>
<div class="traditions mt-12 pt-3 border-t-gray-200 border-t-1 max-w-[90ch] print:border-none">
{{ template "_lettertrad" $model.meta -}}
</div>
<script type="module">
// WARNING: We need to wait for the fonts to settle before rendering anything
document.fonts.ready.then(() => {
if (window.alignSidenotes) {
window.alignSidenotes();
}
});
</script>

View File

@@ -37,8 +37,8 @@
{{ else if $i -}}
,
{{ end }}
{{- $person := Person $p.Reference -}}
{{- $person.Name -}}
{{- $person := Person $p.Reference }}
{{ $person.Name -}}
{{- end -}}
</div>
<div class="mx-3">
@@ -57,8 +57,25 @@
{{- if $i -}}
,
{{- end -}}
{{- $person := Person $p.Reference -}}
{{- $person.Name -}}
{{- $person := Person $p.Reference }}
{{ $person.Name -}}
{{- end -}}
{{ if and $sr.Received.Places (len $sr.Received.Places) }}
{{- range $i, $p := $sr.Received.Places -}}
{{- $place := Place $p.Reference }}
{{- if and $i (eq $i (Minus (len $sr.Received.Places) 1)) -}}
und
{{- end -}}
{{- if $i -}}
,
{{- end -}}
{{- if eq $i 0 -}}
&nbsp;({{- $place.Name -}}
{{- else -}}
{{ $place.Name -}}
{{- end -}}
{{- end -}}
)
{{- end -}}
</div>
{{- else -}}

View File

@@ -5,7 +5,7 @@
{{- (App $trad.Reference).Name -}}
</div>
<div class="tradition-text text hyphens-auto font-sans">
{{- Safe (ParseGeneric $trad.Content) -}}
{{- Safe (ParseGeneric $model $trad.Content) -}}
</div>
</div>
{{- end -}}