Sha256: 5c4cddab7bbe5eb7c7dc34c8b09dea1cf954a2bf96db79063ab522aa34553385
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
{% assign editorial = site.posts | where: 'layout', 'editorial' | first %} <nav class="navbar navbar-expand-lg navbar-light bg-light d-print-block" role="navigation" aria-label="{{ site.i18n.menu.title }}"> <a class="navbar-brand" href=""> {{ site.title }} </a> {% comment %} TODO: Add CSS-only hamburger menu. {% endcomment %} <ul class="navbar-nav d-print-none"> {%- for item in site.i18n.menu.items -%} {% comment %} This makes it hard to just cache the whole navbar, but we prefer to mark the active item in code rather than with JS. {% endcomment %} {% assign url = item.url | liquify %} <li class="nav-item"> <a class="nav-link{% if page.url == url %} active{% endif %}" href="{{ url }}"> {{ item.text }} {%- if page.url == url -%} <span class="sr-only"> {{ site.i18n.menu.active | default: '(current)' }} </span> {%- endif -%} </a> </li> {%- endfor -%} </ul> </nav>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
editorial-autogestiva-jekyll-theme-0.2.8 | _includes/navbar.html |
editorial-autogestiva-jekyll-theme-0.2.7 | _includes/navbar.html |