angular-cn/public/_includes/_docs-nav.jade

14 lines
618 B
Plaintext
Raw Normal View History

2015-02-26 09:45:32 -05:00
nav.side-nav.l-pinned-left.l-layer-4.l-offset-nav
2015-03-04 14:48:14 -05:00
header.side-nav-search
form
2015-03-04 14:57:28 -05:00
label(for="search-io" class="is-hidden") Search Docs
2015-03-04 14:48:14 -05:00
input(type="search" id="search-io" placeholder="SEARCH DOCS...")
2015-02-26 09:45:32 -05:00
ul.side-nav-primary
2015-03-04 08:21:10 -05:00
if current.path[2]
for page, slug in public.docs[current.path[1]][current.path[2]]._data
name = page.menuTitle || page.title
selected = current.path[3] == slug ? 'is-selected':''
2015-03-01 19:39:17 -05:00
2015-03-04 08:21:10 -05:00
li <a class="#{selected}" href="/docs/#{current.path[1]}/#{current.path[2]}/#{slug}.html" md-button><span class="side-nav-icon icon-#{page.icon}"></span> #{name}</a>