angular-docs-cn/public/docs/_includes/sidenav/_tertiary.jade

16 lines
486 B
Plaintext
Raw Normal View History

2015-04-26 11:01:04 -04:00
// TERTIARY NAVIGATION
tertiaryPath = public.docs[current.path[1]][current.path[2]][current.path[3]][current.path[4]]
if tertiaryPath
data = tertiaryPath._data
ul.side-nav-tertiary
for page, slug in data
name = page.title
selected = current.path[5] == slug ? 'is-selected':''
2015-04-26 11:07:32 -04:00
if slug != "index"
li(class="#{selected}")<a href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{current.path[4]}/#{slug}.html" md-button>#{name}</a>
2015-04-26 11:01:04 -04:00