Sha256: 1ab828cfdd33f238761cb045a3a4db444f1d2bd51b67e3b5a3126bf95cf9f1bc
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
<div class="sidebar"> <div class="sidecontent"> {%- capture currentUrl -%}{{ page.url | relative_url}}{%- endcapture %} <a href="{{ '/' | relative_url }}"><img src="{{'assets/image/avartar.png' | relative_url }}" class="avatar"/> </a> <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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-zeta-0.9.2 | _includes/navbar_left.html |