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.
41 lines
1.2 KiB
HTML
41 lines
1.2 KiB
HTML
{{ define "main" }}
|
|
{{ if not (or .Title .Pages) }}
|
|
<section>
|
|
<h1 class="display-5 fw-bold text-center">Nothing Here</h1>
|
|
</section>
|
|
{{ else }}
|
|
<section>
|
|
{{ if .Title }}
|
|
<header>
|
|
<div class="row text-center">
|
|
<div class="col">
|
|
<h1 class="display-5 fw-bold" style="max-width:100ch">
|
|
{{ if .Params.link }}
|
|
<a href="{{ .Params.link }}">{{ .Title | markdownify }}</a>
|
|
{{ else }}
|
|
{{ .Title | markdownify }}
|
|
{{ end }}
|
|
</h1>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
{{ end }}
|
|
{{ if .Pages }}
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="mx-auto text-center" style="max-width:66ch">
|
|
<ul class="list-inline">
|
|
{{ range (sort .Pages "Title") }}
|
|
<li class="list-inline-item">
|
|
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</section>
|
|
{{ end }}
|
|
{{ end }}
|