2016-10-03 18:19:13 +00:00
|
|
|
//- 💫 INCLUDES > SIDEBAR
|
2016-03-31 14:24:48 +00:00
|
|
|
|
2016-10-31 18:04:15 +00:00
|
|
|
menu.c-sidebar.js-sidebar.u-text
|
|
|
|
if sidebar_content
|
2017-10-03 12:20:13 +00:00
|
|
|
each items, sectiontitle in sidebar_content
|
|
|
|
ul.c-sidebar__section.o-block-small
|
|
|
|
li.u-text-label.u-color-dark=sectiontitle
|
2016-10-31 18:04:15 +00:00
|
|
|
|
|
|
|
each url, item in items
|
2017-10-03 12:20:13 +00:00
|
|
|
- var is_current = CURRENT == url || (CURRENT == "index" && url == "./")
|
|
|
|
li.c-sidebar__item
|
|
|
|
+a(url)(class=is_current ? "is-active" : null)=item
|
|
|
|
|
|
|
|
if is_current
|
|
|
|
if IS_MODELS && CURRENT_MODELS.length
|
|
|
|
- menu = Object.assign({}, ...CURRENT_MODELS.map(id => ({ [id]: id })))
|
|
|
|
if menu
|
|
|
|
ul.c-sidebar__crumb.u-hidden-sm
|
|
|
|
- var counter = 0
|
|
|
|
for id, title in menu
|
|
|
|
- counter++
|
2017-10-30 15:16:19 +00:00
|
|
|
li.c-sidebar__crumb__item(data-nav=id)
|
2017-10-03 12:20:13 +00:00
|
|
|
+a("#section-" + id)=title
|