the home site for me: also iteration 3 or 4 of my site
at v1.0 820 B view raw
1{% if config.extra.header_nav %} {% if not current_url %} {% set current_url = 2"" %} {% endif %} 3<nav id="nav-bar"> 4 {% for nav_item in config.extra.header_nav %} 5 <a 6 href="{{ nav_item.url }}" 7 class="{% if nav_item.url == current_url %}active{% endif %}" 8 > 9 {{ nav_item.name }} 10 </a> 11 {% endfor %} 12 <div> 13 <input type="checkbox" id="theme-toggle" style="display: none" /> 14 <label for="theme-toggle" id="theme-toggle-label" 15 ><svg id="theme-icon" class="icons"> 16 <use 17 href="{{ get_url(path='/icons.svg#lightMode', trailing_slash=false) | safe }}" 18 ></use></svg 19 ></label> 20 <audio id="theme-sound"> 21 <source 22 src="{{ get_url(path='click.ogg', trailing_slash=false) | safe }}" 23 type="audio/ogg" 24 /> 25 </audio> 26 </div> 27</nav> 28{% endif %}