Sha256: 7fb276f0c301ed465e2fcfa0395b81ba37c6a745470ad9221bcd11699eb2b1c3

Contents?: true

Size: 1.19 KB

Versions: 6

Compression:

Stored size: 1.19 KB

Contents

<div class="sidebar">
<div class="sidecontent">
{%- capture currentUrl -%}{{ page.url | relative_url}}{%- endcapture %}
<div class="avatar-title">
  <a href="{{ '/' | relative_url }}"  ><img src="{{'assets/image/avatar.png' | relative_url }}"  class="avatar"/> </a>

  <a href="{{ '/' | relative_url }}" class="nav-title"  > {{site.title}} </a>
</div>



<nav>
  <ul class="navul">
    {%-for item in site.theme_config.menu %}

      {%- if item.url -%}
        {%- capture itemurl -%}{{ item.url | relative_url}}{%- endcapture -%}
        
      {%- assign iscurrent= false %}
      {%- if currentUrl == itemurl -%}
            {%- assign iscurrent= true %}
      {%- else -%}
            {%- for subpath in item.subpath %}
               {%- if currentUrl contains subpath %}
                  {%- assign iscurrent= true %}
                  {%- break %}
              {%- endif  %}
            {%- endfor %}
      {%- endif %}
      <li class="{% if iscurrent  == true -%}navli curNav{%-else -%}navli{%- endif -%}">

      <a href="{{ itemurl }}" class="nav">{{ item.title }}</a>
        
      {%- else -%}
        {{ item.title }}
      {%- endif -%}
      </li>
    {%-endfor-%}
  </ul>
</nav>


</div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jekyll-zeta-0.9.4.2 _includes/navbar_left.html
jekyll-zeta-0.9.4.1 _includes/navbar_left.html
jekyll-zeta-0.9.4 _includes/navbar_left.html
jekyll-zeta-0.9.3 _includes/navbar_left.html
jekyll-zeta-0.9.2.2 _includes/navbar_left.html
jekyll-zeta-0.9.2.1 _includes/navbar_left.html