Sha256: a217838a61e8209e8772b5321e64341a6f7394c7e0b2284dfdc7799e85b35771

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

{%- if page_paths -%}
  <nav class="navrail">
    {% comment %}
      <input type="checkbox" id="nav-trigger" class="nav-trigger">
      <label for="nav-trigger">
        <span class="menu-icon">
          <img
            src="
              {{- "assets/theme-assets/theme-images/menu.svg" | relative_url
              -}}
            "
            alt="menu-icon"
          >
        </span>
      </label>
    {% endcomment %}
    <a class="navrail-button" href="/">
      <img class="navrail-icon" src="/assets/theme-assets/theme-icons/home.svg">
      Home</a
    >

    {%- for path in page_paths -%}
      {%- assign my_page = site.pages | where: 'path', path | first -%}
      {%- if my_page.title -%}
        <a class="navrail-button" href="{{ my_page.url | relative_url }}">
          {%- if my_page.title -%}
            <img class="navrail-icon" src="{{- my_page.icon | relative_url -}}">
          {%- endif -%}
          {{ my_page.title | escape }}
        </a>
      {%- endif -%}
    {%- endfor -%}
  </nav>
{%- endif -%}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dark-blog-theme-3.4.0 _includes/navrail.html
dark-blog-theme-3.0.1 _includes/navrail.html
dark-blog-theme-3.0.0 _includes/navrail.html