Allow section titles to be hidden inline (#24)

* Allow section titles to be hidden within the section themselves

* Show sections in footer to match navbar
This commit is contained in:
Jason Tipton 2020-07-03 11:04:30 -08:00 committed by GitHub
parent 2936164cc1
commit a83b1c5658
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 27 additions and 8 deletions

View file

@ -21,7 +21,7 @@
</li>
{{- if .Site.Data.sections }}
{{- range sort .Site.Data.sections "section.weight" }}
{{ if (and .section.enable .section.showOnNavbar) }}
{{ if and (.section.enable) (.section.showOnNavbar)}}
<li class="nav-item">
<a class="nav-link smooth-scroll" href="#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a>
</li>