Sha256: bfdc242d8e58cde1c2f019764a7d639b31d5a37723b6e6d9d16e493e65e9bfa7
Contents?: true
Size: 1.23 KB
Versions: 4
Compression:
Stored size: 1.23 KB
Contents
<div class="sidebar"> {% unless page.hideNavBar %} <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> {% endunless %} </div>
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jekyll-zeta-0.9.5.1 | _includes/navbar_left.html |
jekyll-zeta-0.9.5 | _includes/navbar_left.html |
jekyll-zeta-0.9.4.4 | _includes/navbar_left.html |
jekyll-zeta-0.9.4.3 | _includes/navbar_left.html |