You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.3 KiB
HTML
43 lines
1.3 KiB
HTML
{{ define "main" }}
|
|
{{ if not (or .Title .Description .PublishDate .Content) }}
|
|
<section>
|
|
<h1 class="display-5 fw-bold text-center">Nothing Here</h1>
|
|
</section>
|
|
{{ else }}
|
|
<article>
|
|
{{ if or .Title .Description .PublishDate }}
|
|
<header>
|
|
<div class="row text-center justify-content-center">
|
|
<div class="col" style="max-width:100ch">
|
|
{{ if .Title }}
|
|
<h1 class="display-5 fw-bold">
|
|
{{ if .Params.link }}
|
|
<a href="{{ .Params.link }}">{{ .Title | markdownify }}</a>
|
|
{{ else }}
|
|
{{ .Title | markdownify }}
|
|
{{ end }}
|
|
</h1>
|
|
{{ end }}
|
|
{{ if .Description }}
|
|
<p class="lead">{{ .Description | markdownify }}</p>
|
|
{{ end }}
|
|
{{ if .PublishDate }}
|
|
<p class="text-muted"><time datetime="{{ .PublishDate.Format `2006-01-02` }}">{{ .PublishDate.Format "January 2, 2006" }}</time></p>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</header>
|
|
{{ end }}
|
|
{{ if .Content }}
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="mx-auto" style="max-width:66ch">
|
|
{{ .Content }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</article>
|
|
{{ end }}
|
|
{{ end }}
|