Statische Seiten

This commit is contained in:
Simon Martens
2025-02-24 16:20:08 +01:00
parent d806799b83
commit 6b5fa3dbc3
27 changed files with 617 additions and 85 deletions

View File

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

View File

@@ -0,0 +1 @@
<title>{{ .site.title }} &ndash; {{ .record.title }}</title>

View File

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

View File

@@ -0,0 +1 @@
<title>{{ .site.title }} &ndash; {{ .record.Title }}</title>

View File

@@ -0,0 +1 @@
<title>{{ .site.title }} &ndash; {{ .record.Title }}</title>

View File

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

View File

@@ -0,0 +1 @@
<title>{{ .site.title }} &ndash; {{ .record.Title }}</title>

View File

@@ -1,5 +1,20 @@
<div class="container-normal">
{{ $toc := TOCFromHTML .record.Text }}
<div class="container-normal relative">
<div class="text indented">
{{ Safe .record.Text }}
{{ if .record.Title }}<h1 class="mb-12">{{ .record.Title }}</h1>{{ end }}
<div class="flex flex-row gap-x-6 justify-between">
<div class="jumptext grow shrink-0">
{{ Safe .record.Text }}
</div>
<div>
{{- if $toc -}}
<div class="xl:sticky xl:top-8 grow-0">
{{- template "_toc" $toc -}}
</div>
{{- end -}}
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1 @@
<title>{{ .site.title }} &ndash; {{ .record.Title }}</title>