Sha256: 9830d1c4927d8d4e4ad569fa61f8e83f28f7d583a13e231861c4c523a3a4b1cd

Contents?: true

Size: 1.55 KB

Versions: 3

Compression:

Stored size: 1.55 KB

Contents

{% assign menu_home = site.pages | where: "layout", "home" | first %}
{% assign menu_links = site.pages | where: "nav-menu", true | sort: 'order' %}
{% assign menu_cta_links = site.pages | where: "nav-menu-cta", true | sort: 'order' %}

<!-- Header -->
<header id="header"{% if page.layout == "landing" %} class="alt style{{ page.style }}"{% endif %}{% if page.layout == "home" %} class="alt"{% endif %}>
	<a href="{{ "" | absolute_url }}/" class="logo"><strong>{{ site.title }}</strong> <span>{{ site.subtitle }}</span></a>
	<nav>
		<a href="#menu">
			{% include _t.html 
									label = site.data.labels.menu
									fallback = 'Menu' %}
		</a>
	</nav>
</header>

<!-- Menu -->
<nav id="menu">
	{% if menu_home %}
		<ul class="actions vertical">
			<li>
				<a href="{{ menu_home.url }}" class="button special fit small">
					{{ menu_home.title }}
				</a>
			</li>
		</ul>
	{% endif %}

	{% if menu_links %}
	<ul class="links">
		{% for link in menu_links %}
	    {% if link.title %}
	      <li>
	       	<a href="{{ link.url | relative_url }}">
	       		{{ link.title }}
	       	</a>
	      </li>
	    {% endif %}
		{% endfor %}
	</ul>
	{% endif %}

	{% if menu_cta_links or site.nav-menu-cta %}
	<ul class="actions vertical">
		{% for link in menu_cta_links %}
		<li>
			<a href="{{ link.url | relative_url }}" class="button fit">
				{{ link.title }}
			</a>
		</li>
		{% endfor %}

		{% for link in site.nav-menu-cta %}
			<li>
				<a href="{{ link.url | relative_url }}" class="button fit">
					{{ link.title }}
				</a>
			</li>
		{% endfor %}
	</ul>
	{% endif %}
</nav>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fortyone-jekyll-theme-1.2.2 _includes/header.html
fortyone-jekyll-theme-1.2.1 _includes/header.html
fortyone-jekyll-theme-1.2.0 _includes/header.html