summaryrefslogtreecommitdiffhomepage
path: root/examples/multilingual/layouts/partials/header.html
blob: 59495da8f4c760ddca1fdb62cfa0edd1257796a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<header>
	<nav class="menu language-menu">
		<ul>
			<li><a href="/home">English</a></li>
			<li><a href="/kodu">Eesti</a></li>
		</ul>
		<div class="clear"></div>
	</nav>

	{{ if (eq .Params.lang "et") }}
	<h1 class="title">Minu mitmekeelne leht</h1>
	{{ else }}
	<h1 class="title">My multilingual site</h1>
	{{ end }}

	<nav class="menu main-menu">
		<ul>
			{{ range (index .Site.Taxonomies.menu .Params.lang).Pages }}
			<li><a href="{{ .Permalink  }}">{{ .LinkTitle }}</a></li>
			{{ end }}
		</ul>
	</nav>
</header>

<h2 class="subtitle">{{ .Title }}</h2>