mirror of
https://gitea.com/gitea/theme.git
synced 2024-06-02 18:01:23 +05:30
Remove links from empty navigation headlines
This commit is contained in:
parent
1cd9075145
commit
8be15bc3bd
|
@ -3,10 +3,8 @@
|
||||||
{{ $currentNode := . }}{{ range .Site.Menus.sidebar }}
|
{{ $currentNode := . }}{{ range .Site.Menus.sidebar }}
|
||||||
{{ if .HasChildren }}
|
{{ if .HasChildren }}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="#">
|
{{ .Pre }}
|
||||||
{{ .Pre }}
|
{{ .Name }}
|
||||||
{{ .Name }}
|
|
||||||
</a>
|
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
|
Loading…
Reference in a new issue