Basic Briefansicht + parsing

This commit is contained in:
Simon Martens
2025-04-01 18:07:57 +02:00
parent 0e2c6360bf
commit 31d40c1ce1
13 changed files with 107 additions and 55 deletions

View File

@@ -1,10 +1,8 @@
{{ $model := . }}
<nav class="flex flex-row gap-x-1 justify-between">
<div>
<a class="inline-block px-0.5" href="/"> J.M.R. Lenz: Kritische Briefausgabe </a>
</div>
<a href="/jahrgang/1765" class="inline-block px-0.5">Jahrgänge </a>
{{ .path }}
<a href="/briefe?year=1765" class="inline-block px-0.5">Jahrgänge </a>
</nav>

View File

@@ -6,3 +6,5 @@
{{ if .next }}
<a href="/brief/{{ .next.Letter }}" class="stdlink">Nächster</a>
{{ end }}
{{- Safe (ParseGeneric .text.Content) -}}

View File

@@ -5,14 +5,14 @@
{{- range $y := .years -}}
<a
class="inline-block stdlink px-0.5"
href="/jahrgang/{{ $y }}"
href="/briefe?year={{ $y }}"
{{ if eq $model.year $y -}}aria-current="page"{{- end }}
>{{ $y }}</a
>
{{- end -}}
<a
class="inline-block stdlink px-0.5"
href="/jahrgang/all"
href="/briefe?year=all"
{{ if .all -}}aria-current="page"{{- end }}
>Alle</a
>