Fully working for old versions without i18n

This commit is contained in:
Hugo MARTIN 2020-08-05 19:51:35 +02:00 committed by Emruz Hossain
parent e9af2f70d2
commit 10707b361e
3 changed files with 38 additions and 1 deletions

View file

@ -13,6 +13,16 @@
{{ end }}
{{- end }}
</ul>
{{ else if .Site.Data.sections }}
<ul>
{{- range sort .Site.Data.sections "section.weight" }}
{{ if and (.section.enable) (.section.showOnNavbar)}}
<li class="nav-item">
<a class="smooth-scroll" href="/#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a>
</li>
{{ end }}
{{- end }}
</ul>
{{ end }}
</div>