Fix-12 Hide unused sections if they are not defined in yaml

This commit is contained in:
Jason Tipton 2020-06-26 19:14:39 -08:00
parent fb7b04dc93
commit 2a334d5eef
5 changed files with 11 additions and 10 deletions

View file

@ -1,5 +1,5 @@
{{ if .Site.Data.projects }}
<div class="container-fluid projects bg-dimmed anchor pb-5" id="projects">
{{ if .Site.Data.projects }}
<h1 class="text-center">Projects</h1>
<div class="container ml-auto text-center">
<div class="btn-group flex-wrap" role="group" id="project-filter-buttons">
@ -17,5 +17,5 @@
{{ end }}
</div>
</div>
{{ end }}
</div>
{{ end }}