Sha256: 5febc5384f6b34ccde65bd92e4f23a6dae2136656b54a22df3457f8d2ceacce7
Contents?: true
Size: 1.44 KB
Versions: 2
Compression:
Stored size: 1.44 KB
Contents
{% if site.home %} {% assign return = site.home | relative_url %} {% else %} {% assign return = '/' | relative_url %} {% endif %} <header class="bg-{{ site.data.skin.header.bg | default: 'gray-4' }}"> <div class="container"> <nav class="navbar navbar-expand-sm"> <a class="navbar-brand" href="{{ return }}">{{ site.title }}</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navigation"> <div class="navbar-nav"> {% assign links = site.pages | sort: 'navorder' %} {% for link in links %} {% if link.navorder %} {% assign current = link.name | split: '.' | first %} {% assign href = link.url | relative_url %} {% if page.layout == current %} <a class="nav-link active" aria-current="page" href="{{ href }}">{{ link.title }}</a> {% else %} <a class="nav-link" href="{{ href }}">{{ link.title }}</a> {% endif %} {% endif %} {% endfor %} </div> </div> </nav> </div> </header>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-nagymaros-3.1.0 | _includes/header.html |
jekyll-nagymaros-3.0.0 | _includes/header.html |