Sha256: aaa0d677f1a5ac0f2fa3a71e4e6c75945d876ed30c459fac3762c251a514ce10
Contents?: true
Size: 990 Bytes
Versions: 1
Compression:
Stored size: 990 Bytes
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 %} <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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
editorial-autogestiva-jekyll-theme-0.2.4 | _includes/navbar.html |