Sha256: 5038abc02dd21d0ddfa7e77fd9fb30a3d034953440ca0b8b7fbdc3075626eb5e
Contents?: true
Size: 727 Bytes
Versions: 4
Compression:
Stored size: 727 Bytes
Contents
{%- assign menuURLs = "/blog/|/about.html|/contact.html" | split: "|" -%} {%- assign menuAnchors = "Blog|About|Contact" | split: "|" -%} {%- assign menuTitles = "My blog about stuff.|About this here website.|Contact us." | split: "|" -%} <nav id="site-nav"> {% for link in menuURLs -%} {% capture idx %}{{ link | append: "index.html" }}{% endcapture -%} <a {%- if page.url==link %} class="nav-self" {%- elsif page.url contains link and page.url == idx %} class="nav-self" {%- else %} {%- if page.url contains link and page.url != link %} class="nav-sub"{% endif %} href="{{ link }}" {%- endif %} title="{{ menuTitles[forloop.index0] }}">{{ menuAnchors[forloop.index0] }}</a> {% endfor -%} </nav>
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
structrdfal-0.1.3 | _includes/nav.html |
structrdfal-0.1.2 | _includes/nav.html |
structrdfal-0.1.1 | _includes/nav.html |
structrdfal-0.1.0 | _includes/nav.html |