Configure section title and menu urls in section yaml files

This commit is contained in:
Jason Tipton 2020-06-29 20:47:41 -08:00
parent 45535cd290
commit ff692650a7
7 changed files with 114 additions and 99 deletions

View file

@ -1,19 +1,21 @@
<div class="container-fluid anchor pb-5" id="projects">
<h1 class="text-center">{{ .section.name }}</h1>
<div class="container ml-auto text-center">
<div class="btn-group flex-wrap" role="group" id="project-filter-buttons">
{{ range .buttons }}
<button type="button" class="btn btn-dark" data-filter="{{ .filter }}">
{{ .name }}
</button>
{{ end }}
<div class="container-fluid anchor pb-5" id="{{ replace (lower .section.name) " " "-" }}">
<div id="projects">
<h1 class="text-center">{{ .section.name }}</h1>
<div class="container ml-auto text-center">
<div class="btn-group flex-wrap" role="group" id="project-filter-buttons">
{{ range .buttons }}
<button type="button" class="btn btn-dark" data-filter="{{ .filter }}">
{{ .name }}
</button>
{{ end }}
</div>
</div>
</div>
<div class="container filtr-projects">
<div class="row" id="project-card-holder">
{{ range .projects }}
{{ partial "cards/project" . }}
{{ end }}
<div class="container filtr-projects">
<div class="row" id="project-card-holder">
{{ range .projects }}
{{ partial "cards/project" . }}
{{ end }}
</div>
</div>
</div>
</div>