Sha256: e70bb9a244e73b6f165cc2c6e9eb3fe31666af044bef765a6244d92334384fc6

Contents?: true

Size: 1.44 KB

Versions: 1

Compression:

Stored size: 1.44 KB

Contents

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

<!-- Header -->
<header id="header"{% if page.layout == "landing" %} class="alt style2"{% 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 | absolute_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 }}" class="button fit">
				{{ link.title }}
			</a>
		</li>
		{% endfor %}

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fortyone-jekyll-theme-1.0.4 _includes/header.html