/
githubmirror
/
jekyll
Обзор
Документация
Войти
/
githubmirror
/
jekyll
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_includes/news_contents.html
33 строки
1 KB
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> <ul> <li {% if page.title == 'News' %} class="current" {% endif %}> <a href="{{ '/news/' | relative_url }}">All News</a> </li> <li {% if page.title == 'Releases' %} class="current" {% endif %}> <a href="{{ '/news/releases/' | relative_url }}">Jekyll Releases</a> </li> </ul> <h4>Recent Releases</h4> <ul> {% for post in site.categories.release limit:5 -%} <li {% if page.title == post.title %} class="current"{% endif %}> <a href="{{ post.url | relative_url }}">Version {{ post.version }}</a> </li> {% endfor -%} <li> <a href="{{ '/docs/history/' | relative_url }}">History »</a> </li> </ul> <h4>Other News</h4> <ul> {% for post in site.posts -%} {% unless post.categories contains 'release' -%} <li {% if page.title == post.title %} class="current" {% endif %}> <a href="{{ post.url | relative_url }}">{{ post.title }}</a> </li> {% endunless -%} {% endfor -%} </ul> </aside> </div>