mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-05 02:55:30 +00:00
consolidated page data
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<title>{{ .site.title }} – {{ .record.Title }}</title>
|
||||
<meta name="description" content="{{ .record.Description }}" />
|
||||
<title>{{ .site.title }} – {{ pageMetaField "literatur" "title" }}</title>
|
||||
<meta name="description" content="{{ pageMetaField "literatur" "description" }}" />
|
||||
|
||||
Reference in New Issue
Block a user