Add optional page description/subheading

This commit is contained in:
2022-05-27 15:11:29 +02:00
parent f65aadc03c
commit 2aa6612a28
4 changed files with 25 additions and 8 deletions

View File

@@ -5,6 +5,9 @@
<div class="max-w-5xl mx-auto -mt-12 py-8 px-8 text-left bg-white">
<header class="mb-8">
<h2 class="text-2xl font-bold">{{ .Title }}</h1>
{{ if .Description }}
<p class="mt-2 text-lg text-zinc-500">{{ .Description }}</p>
{{ end }}
</header>
<div class="content">
{{ .Content }}