1
Fork 0

Nested navbar items

This commit is contained in:
Jake Howard 2017-07-09 19:39:03 +01:00
parent b6b6e9e511
commit 6f16e569de
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 14 additions and 1 deletions

View file

@ -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>

View file

@ -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;