Nested navbar items
This commit is contained in:
parent
b6b6e9e511
commit
6f16e569de
2 changed files with 14 additions and 1 deletions
|
@ -12,7 +12,14 @@
|
|||
{{ if $children }}
|
||||
<ul>
|
||||
{{ range first .Site.Params.nav_items $children }}
|
||||
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ if ge (len $children) .Site.Params.nav_items }}
|
||||
<li><a href="{{ .Permalink }}"><i>See more</i></a></li>
|
||||
|
|
|
@ -80,6 +80,12 @@ blockquote p {
|
|||
margin-top: 0.1em;
|
||||
}
|
||||
|
||||
.dropotron.level-1 {
|
||||
margin-top: 0.1em;
|
||||
left: initial !important;
|
||||
right: 100% !important;
|
||||
}
|
||||
|
||||
#main {
|
||||
padding: 2em 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue