Sha256: 2e3662b889a949c594cb762d7a4a47a2f44860321574d5d20bbb9d314517df95
Contents?: true
Size: 1.16 KB
Versions: 30
Compression:
Stored size: 1.16 KB
Contents
{%- if site.title.size > 0 %} <h1> <a href="{{ '/' | relative_url }}"> {{ site.title }} </a></h1> {%- endif -%} {%- capture currentUrl -%}{{ page.url | relative_url}}{%- endcapture %} <nav> <ul class="navul"> {%-for item in site.theme_config.menu %} <li class="navli"> {%- 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 %} {%- if iscurrent == true -%} <a href="{{ itemurl }}" class="curNav">{{ item.title }}</a> {%- else -%} <a href="{{ itemurl }}" class="nav">{{ item.title }}</a> {%- endif - -%} {%- else -%} {{ item.title }} {%- endif -%} </li> {%-endfor-%} </ul> </nav>
Version data entries
30 entries across 30 versions & 1 rubygems