Split baseof.html into more templates

This commit is contained in:
Will Faught
2022-12-11 01:00:28 -08:00
parent bdbd7ec8df
commit 158f9d1d5d
15 changed files with 83 additions and 75 deletions

View File

@@ -1,18 +0,0 @@
{{ if .Title }}
<h1 class="display-5 fw-bold text-center">
{{ if .Params.link }}
<a href="{{ .Params.link }}">{{ .Title | markdownify }}</a>
{{ else }}
{{ .Title | markdownify }}
{{ end }}
</h1>
{{ end }}
{{ if .Description }}
<p class="lead text-center">{{ .Description | markdownify }}</p>
{{ end }}
{{ if .PublishDate }}
<p class="text-center text-muted"><time datetime="{{ .PublishDate.Format `2006-01-02` }}">{{ .PublishDate.Format "January 2, 2006" }}</time></p>
{{ end }}
{{ if .Content }}
{{ .Content }}
{{ end }}