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