feat: add section specific navigation bar

This commit is contained in:
Henk Verlinde
2022-01-28 16:09:01 +01:00
parent f7bb574a9b
commit 4162b7110c
3 changed files with 21 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<div class="row justify-content-center">
<div class="col-md-12 col-lg-10 col-xl-8">
<article>
<h1 class="text-center">{{ .Title }}</h1>
<h1 class="text-center">{{ if eq .CurrentSection .FirstSection }}{{ .Section | humanize }}{{ else }}{{ .Title }}{{ end }}</h1>
<div class="text-center">{{ .Content }}</div>
<div class="card-list">
{{ $currentSection := .CurrentSection }}