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

16 lines
510 B
Plaintext
Raw Normal View History

2015-04-26 11:01:04 -04:00
// TERTIARY NAVIGATION
- var tertiaryPath = public.docs[current.path[1]][current.path[2]][current.path[3]][current.path[4]]
2015-04-26 11:01:04 -04:00
if tertiaryPath
- var data = tertiaryPath._data
2015-04-26 11:01:04 -04:00
ul.side-nav-tertiary
for page, slug in data
- var name = page.title
- var selected = current.path[5] == slug ? 'is-selected':''
2015-04-26 11:01:04 -04:00
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