consolidated page data

This commit is contained in:
Simon Martens
2026-01-14 16:30:03 +01:00
parent f716eb5547
commit ca2df2da8a
40 changed files with 863 additions and 1597 deletions

View File

@@ -1,8 +1,8 @@
<div class="container-normal relative">
<div class="text">
{{ if .record.Title }}<h1 class="mb-12">{{ .record.Title }}</h1>{{ end }}
{{ if (pageMetaField "benutzerhinweise" "title") }}<h1 class="mb-12">{{ pageMetaField "benutzerhinweise" "title" }}</h1>{{ end }}
<div class="text">
{{ Safe .record.Text }}
{{ pageHtml "benutzerhinweise" "text" }}
</div>
</div>
</div>

View File

@@ -1,2 +1,2 @@
<title>{{ .site.title }} &ndash; {{ .record.Title }}</title>
<meta name="description" content="{{ .record.Description }}" />
<title>{{ .site.title }} &ndash; {{ pageMetaField "benutzerhinweise" "title" }}</title>
<meta name="description" content="{{ pageMetaField "benutzerhinweise" "description" }}" />

View File

@@ -1,8 +1,8 @@
<div class="container-normal relative">
<div class="text">
{{ if .record.Title }}<h1 class="mb-12">{{ .record.Title }}</h1>{{ end }}
{{ if (pageMetaField "danksagungen" "title") }}<h1 class="mb-12">{{ pageMetaField "danksagungen" "title" }}</h1>{{ end }}
<div class="text [&_*]:!indent-0 [&_p]:mt-2">
{{ Safe .record.Text }}
{{ pageHtml "danksagungen" "text" }}
</div>
</div>
</div>

View File

@@ -1,2 +1,2 @@
<title>{{ .site.title }} &ndash; {{ .record.Title }}</title>
<meta name="description" content="{{ .record.Description }}" />
<title>{{ .site.title }} &ndash; {{ pageMetaField "danksagungen" "title" }}</title>
<meta name="description" content="{{ pageMetaField "danksagungen" "description" }}" />

View File

@@ -1,5 +1,5 @@
<div class="container-normal">
<div class="text mt-6">
{{ Safe .record.Text }}
{{ pageHtml "einleitung" "text" }}
</div>
</div>

View File

@@ -1,2 +1,2 @@
<title>{{ .site.title }} &ndash; {{ .record.Title }}</title>
<meta name="description" content="{{ .record.Description }}" />
<title>{{ .site.title }} &ndash; {{ pageMetaField "einleitung" "title" }}</title>
<meta name="description" content="{{ pageMetaField "einleitung" "description" }}" />

View File

@@ -1,8 +1,8 @@
<div class="container-normal relative">
<div class="text">
{{ if .record.Title }}<h1 class="mb-12">{{ .record.Title }}</h1>{{ end }}
{{ if (pageMetaField "kontakt" "title") }}<h1 class="mb-12">{{ pageMetaField "kontakt" "title" }}</h1>{{ end }}
<div class="text [&_*]:!indent-0 [&_p]:mt-2">
{{ Safe .record.Text }}
{{ pageHtml "kontakt" "text" }}
</div>
</div>
</div>

View File

@@ -1,2 +1,2 @@
<title>{{ .site.title }} &ndash; {{ .record.Title }}</title>
<meta name="description" content="{{ .record.Description }}" />
<title>{{ .site.title }} &ndash; {{ pageMetaField "kontakt" "title" }}</title>
<meta name="description" content="{{ pageMetaField "kontakt" "description" }}" />

View File

@@ -1,8 +1,8 @@
<div class="container-normal relative">
<div class="text indented">
{{ if .record.Title }}<h1 class="mb-12">{{ .record.Title }}</h1>{{ end }}
{{ if (pageMetaField "lesekabinett" "title") }}<h1 class="mb-12">{{ pageMetaField "lesekabinett" "title" }}</h1>{{ end }}
<div class="text">
{{ Safe .record.Text }}
{{ pageHtml "lesekabinett" "text" }}
</div>
</div>
</div>

View File

@@ -1,2 +1,2 @@
<title>{{ .site.title }} &ndash; {{ .record.Title }}</title>
<meta name="description" content="{{ .record.Description }}" />
<title>{{ .site.title }} &ndash; {{ pageMetaField "lesekabinett" "title" }}</title>
<meta name="description" content="{{ pageMetaField "lesekabinett" "description" }}" />

View File

@@ -1,12 +1,12 @@
{{ $toc := TOCFromHTML .record.Text }}
{{ $toc := TOCFromHTML (printf "%s" (pageHtml "literatur" "text")) }}
<div class="container-normal relative">
<div class="text ">
{{ if .record.Title }}<h1 class="mb-12">{{ .record.Title }}</h1>{{ end }}
{{ if (pageMetaField "literatur" "title") }}<h1 class="mb-12">{{ pageMetaField "literatur" "title" }}</h1>{{ end }}
<div class="flex flex-row gap-x-6 justify-between ">
<div class="grow shrink-0 text indented jumptext">
{{ Safe .record.Text }}
{{ pageHtml "literatur" "text" }}
</div>
<div>
{{- if $toc -}}

View File

@@ -1,2 +1,2 @@
<title>{{ .site.title }} &ndash; {{ .record.Title }}</title>
<meta name="description" content="{{ .record.Description }}" />
<title>{{ .site.title }} &ndash; {{ pageMetaField "literatur" "title" }}</title>
<meta name="description" content="{{ pageMetaField "literatur" "description" }}" />