Some small stuff; überlieferungen; erster entfurf für randnotizen

This commit is contained in:
Simon Martens
2025-05-13 18:29:56 +02:00
parent b6e2d6d84c
commit cf683c43ab
10 changed files with 87 additions and 44 deletions

View File

@@ -1,8 +1,11 @@
{{ $model := . }}
<div class="flex flex-row w-full border-b pb-2 mb-3">
{{- template "_letterhead" .meta -}}
<div class="self-end justify-self-end grow-0 ">
<div class="self-end justify-self-end grow-0 print:hidden">
{{ if .prev }}
<a href="/brief/{{ .prev.Letter }}" class="stdlink"
><i class="ri-arrow-left-long-line"></i
@@ -20,3 +23,7 @@
<div class="text">
{{- Safe (ParseGeneric .text.Content) -}}
</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>

View File

@@ -1,7 +1,7 @@
{{ $model := . }}
<nav>
<nav class="print:hidden">
{{- range $y := .years -}}
<a
class="inline-block stdlink px-0.5"
@@ -22,7 +22,7 @@
{{- if .year -}}
{{- $letters := index $model.yearmap $model.year -}}
<div class="flex flex-row gap-x-1">
<div>{{- .year }}</div>
<div>Briefe für das Jahr {{- .year }}</div>
<div>({{- len $letters }})</div>
</div>
{{ template "_letterlist" $letters -}}

View File

@@ -0,0 +1,11 @@
{{ $model := . }}
{{- range $i, $trad := (Tradition $model.Letter) -}}
<div class="traditioncategory mb-6">
<div class="tradition-header font-bold">
{{- (App $trad.Reference).Name -}}
</div>
<div class="tradition-text">
{{- Safe (ParseGeneric $trad.Content) -}}
</div>
</div>
{{- end -}}