mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
//- 💫 INCLUDES > SIDEBAR
|
|
|
|
menu.c-sidebar.js-sidebar.u-text
|
|
if sidebar_content
|
|
each items, sectiontitle in sidebar_content
|
|
ul.c-sidebar__section.o-block-small
|
|
li.u-text-label.u-color-dark=sectiontitle
|
|
|
|
each url, item in items
|
|
- var is_current = CURRENT == url || (CURRENT == "index" && url == "./")
|
|
li.c-sidebar__item
|
|
+a(url)(class=is_current ? "is-active" : null tabindex=is_current ? "-1" : 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++
|
|
li.c-sidebar__crumb__item(data-nav=id)
|
|
+a("#section-" + id)=title
|