Files
musenalm/views/routes/edition/literatur/body.gohtml
2025-02-24 16:20:08 +01:00

21 lines
490 B
Plaintext

{{ $toc := TOCFromHTML .record.Text }}
<div class="container-normal relative">
<div class="text indented">
{{ 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>