Sha256: beb286e3bc8d2a8d1d27a52fb6b83373d6025e6767814a51021caafe301fce48
Contents?: true
Size: 1.5 KB
Versions: 2
Compression:
Stored size: 1.5 KB
Contents
<div class="topnav"> {% if site.avatar %} <div class="topnav__avatar"> {% if site.avatar contains "://" %} <img src="{{ site.avatar }}" alt="{{ site.name }}"> {% else %} <img src="{{ site.avatar | absolute_url }}" alt="{{ site.name }}"> {% endif %} </div> {% endif %} <div class="topnav__content"> <h3 class="site__name">{{ site.title }}</h3> {% if site.description %} <p class="site__bio"> {{ site.description }} </p> {% endif %} <nav> <ul id="navigation" class="links slimmenu"> {% for link in site.data.navigation.main %} {% if link.url contains 'http' %} {% assign domain = '' %} {% else %} {% assign domain = site.url | append: site.baseurl %} {% endif %} <li class="menu-item"> <a href="{{ domain }}{{ link.url }}">{{ link.title }}</a> {% if link.children %} <ul> {% for child in link.children %} {% if child.url contains 'http' %} {% assign domain = '' %} {% else %} {% assign domain = site.url | append: site.baseurl %} {% endif %} <li><a href="{{domain }}{{child.url}}">{{ child.title }}</a></li> {% endfor %} </ul> {% endif %} </li> {% endfor %} </ul> </nav> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sparrow-jekyll-theme-0.1.1 | _includes/topnav.html |
sparrow-jekyll-theme-0.1.0 | _includes/topnav.html |