/
githubmirror
/
jekyll
Обзор
Документация
Войти
/
githubmirror
/
jekyll
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_includes/docs_contents.html
18 строк
645 B
a story
Fixed: Wrong navigation style on the right side of news and docs pages (#9586)
23 апр 2024, 21:58
Не верифицирован
23 апр 2024, 21:58
c85bd15
Код
Авторство
О чём код?
<div class="unit one-fifth hide-on-mobiles"> <aside> {% for section in site.data.docs_nav %} <h4>{{ section.title }}</h4> <ul> {%- for item in section.docs -%} {%- assign item_page = site.docs | where: "url", item.link | first -%} {%- capture item_html -%} <a href="{{ item_page.url | relative_url }}"> {{ item_page.menu_name | default: item_page.title }} </a> {% endcapture %} <li{% unless item_page.url != page.url %} class="current"{% endunless %}>{{ item_html }}</li> {% endfor %} </ul> {% endfor -%} </aside> </div>