1
0
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:
Ryan L McIntyre 2019-07-25 14:26:26 -07:00
parent c8ca3b4a5f
commit 8b47c3d9e2

View File

@ -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 %}