add / to change URL in Navigation in footer

This commit is contained in:
al-haras 2020-07-15 14:04:29 -07:00
parent 08420ca095
commit 80f3a6e501

View file

@ -8,7 +8,7 @@
{{- 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>
<a class="smooth-scroll" href="/#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a>
</li>
{{ end }}
{{- end }}