removed index items from nag

This commit is contained in:
Alex Wolfe 2015-04-21 23:13:46 -07:00
parent 1577d2c698
commit b084b3a434
1 changed files with 9 additions and 8 deletions

View File

@ -28,16 +28,17 @@ nav.side-nav.l-pinned-left.l-layer-4.l-offset-nav
ul(class="side-nav-secondary #{ordered}")
for page, slug in public.docs[current.path[1]][current.path[2]][current.path[3]]._data
name = page.menuTitle || page.title
selected = current.path[4] == slug ? 'is-selected':''
num = (listType == "ordered") ? number++ : ''
if slug != "index"
name = page.menuTitle || page.title
selected = current.path[4] == slug ? 'is-selected':''
num = (listType == "ordered") ? number++ : ''
if slug != "_listtype"
if num
li(class="#{selected}") <a href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{slug}.html" md-button>#{num}. #{page.title}</a>
if slug != "_listtype"
if num
li(class="#{selected}") <a href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{slug}.html" md-button>#{num}. #{page.title}</a>
else
li(class="#{selected}") <a href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{slug}.html" md-button>#{page.title}</a>
else
li(class="#{selected}") <a href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{slug}.html" md-button>#{page.title}</a>
// TERTIARY NAVIGATION