2016-03-31 17:24:48 +03:00
|
|
|
include _mixins
|
|
|
|
|
|
|
|
- var nav_active_class = 'nav-item--active'
|
|
|
|
|
|
|
|
|
|
|
|
//- Top Navigation Bar
|
|
|
|
//- ============================================================================
|
|
|
|
|
|
|
|
nav#topnav.nav
|
|
|
|
|
|
|
|
a(href='/')
|
|
|
|
!=partial('_logo', { logo_size: 'small' })
|
|
|
|
|
|
|
|
input(type='checkbox' class='nav-checkbox' id='nav-checkbox' aria-hidden='true')
|
|
|
|
|
|
|
|
ul.nav-menu
|
|
|
|
|
|
|
|
if standalone
|
|
|
|
li.nav-item(class=nav_active_class)=title
|
|
|
|
li.nav-item: a(href='/') Back to website
|
|
|
|
|
|
|
|
else
|
|
|
|
li.nav-item(class=(_section == 'index') ? nav_active_class : '')
|
|
|
|
a(href='/') Home
|
|
|
|
|
|
|
|
each slug, item in navigation
|
|
|
|
li.nav-item(class=(_section == slug) ? nav_active_class : '')
|
|
|
|
a(href='/' + slug)=item
|
|
|
|
|
2016-03-31 18:23:52 +03:00
|
|
|
li.nav-item: a(href='https://github.com/' + profiles.github + '/spaCy' target='_blank') GitHub
|
2016-03-31 17:24:48 +03:00
|
|
|
|
|
|
|
label(for='nav-checkbox' class='nav-button' arial-label='Toggle Navigation')
|