mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-06 21:49:40 +02:00
Fixes topnav selection active
This commit is contained in:
parent
c8ca3b4a5f
commit
8b47c3d9e2
@ -1,10 +1,10 @@
|
||||
<nav><ul>
|
||||
{% for node in site.posts reversed %}
|
||||
{% if node.page == page.page %}
|
||||
{% if node.page == page.page and (page.page != nil or node.id == '/home') %}
|
||||
{% assign active = 'active' %}
|
||||
{% else %}
|
||||
{% assign active = '' %}
|
||||
{%endif %}
|
||||
{% endif %}
|
||||
{% capture id %}{{ node.id | remove:'/' | downcase }}{% endcapture %}
|
||||
<li class="p-{{id}} hide-on-larger-view {{active}}">
|
||||
{% if node.page %}
|
||||
|
Loading…
Reference in New Issue
Block a user