Remove links from empty navigation headlines

This commit is contained in:
Matthias Loibl 2016-12-23 14:41:45 +01:00
parent 1cd9075145
commit 8be15bc3bd
No known key found for this signature in database
GPG Key ID: B1C7DF661ABB2C1A
1 changed files with 2 additions and 4 deletions

View File

@ -3,10 +3,8 @@
{{ $currentNode := . }}{{ range .Site.Menus.sidebar }}
{{ if .HasChildren }}
<li class="nav-item">
<a class="nav-link" href="#">
{{ .Pre }}
{{ .Name }}
</a>
{{ .Pre }}
{{ .Name }}
<ul>
{{ range .Children }}
<li class="nav-item">