Sha256: b5ea7aa53ece20f99d17271b4c60666658f871602b8ebbe83edb27addd355125
Contents?: true
Size: 1.29 KB
Versions: 10
Compression:
Stored size: 1.29 KB
Contents
<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=""> {% include_cached logo.svg %} </a> <ul class="navbar-nav d-print-none" data-controller="menu"> {%- for item in site.i18n.menu.items -%} {% comment %} Algunos items del menĂș tienen layouts para indicar que queremos el primero de esos artĂculos independientemente de la URL. XXX: Como las asignaciones sobreviven a este archivo hay que convertirlas a nil cuando se las deja de usar. {% endcomment %} {%- if item.layout -%} {%- assign post = site.posts | find: 'layout', item.layout -%} {%- else -%} {%- assign post = nil -%} {%- endif -%} {%- assign href = post.url | default: item.href -%} {%- assign active = include.active_cache_key | equals: href -%} <li class="nav-item"> <a data-target="menu.item" class="nav-link {{ active | ternary: 'active', '' }}" href="{{ href }}"> {{ item.title }} {%- if active -%} <span class="sr-only"> {{ site.i18n.menu.active | default: '(current)' }} </span> {%- endif -%} </a> </li> {%- endfor -%} </ul> </nav>
Version data entries
10 entries across 10 versions & 1 rubygems