Sha256: 9a5e539f1404c343ed51f564dffe1601119c9639f4e1b171ed7df82c2ef08a37

Contents?: true

Size: 1.22 KB

Versions: 7

Compression:

Stored size: 1.22 KB

Contents

<nav class="navbar navbar-expand-lg navbar-light bg-light d-print-block fixed-top" role="navigation" aria-label="{{ site.i18n.menu.title }}">
  <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

7 entries across 7 versions & 1 rubygems

Version Path
empresa-recuperada-jekyll-theme-0.2.6 _includes/navbar.html
empresa-recuperada-jekyll-theme-0.2.5 _includes/navbar.html
empresa-recuperada-jekyll-theme-0.2.4 _includes/navbar.html
empresa-recuperada-jekyll-theme-0.2.3 _includes/navbar.html
empresa-recuperada-jekyll-theme-0.2.2 _includes/navbar.html
empresa-recuperada-jekyll-theme-0.2.1 _includes/navbar.html
empresa-recuperada-jekyll-theme-0.2.0 _includes/navbar.html