/
githubmirror
/
jekyll
Обзор
Документация
Войти
/
githubmirror
/
jekyll
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_includes/docs_contents_mobile.html
15 строк
647 B
velle
Jekyll docs template typo - All pages show "Deployment" (#9548)
13 фев 2024, 06:01
Не верифицирован
13 фев 2024, 06:01
22c756a
Код
Авторство
О чём код?
<div class="docs-nav-mobile unit whole show-on-mobiles"> <select id="doc-nav" onchange="navigateToUrl(this)" aria-label="Select a page from the documentation"> <option value="">Navigate the docs…</option> {% for section in site.data.docs_nav %} <optgroup label="{{ section.title }}"> {%- for item in section.docs -%} {% assign item_page = site.docs | where: "url", item.link | first %} <option value="{{ item_page.url | relative_url }}"> {{- item_page.menu_name | default: item_page.title -}} </option> {%- endfor %} </optgroup> {% endfor %} </select> </div>