hugo/examples/multilingual/layouts/partials/header.html

22 lines
496 B
HTML
Raw Normal View History

2013-11-23 19:16:42 +00:00
<header>
<nav id="language-menu">
<a href="/home">English</a>
<a href="/kodu">Eesti</a>
2013-11-23 19:16:42 +00:00
</nav>
{{ if (eq .Params.lang "et") }}
<h1 id="title">Minu mitmekeelne leht</h1>
2013-11-23 19:16:42 +00:00
{{ else }}
<h1 id="title">My multilingual site</h1>
2013-11-23 19:16:42 +00:00
{{ end }}
<nav id="main-menu">
{{ range (index .Site.Taxonomies.menu .Params.lang).Pages }}
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
{{ end }}
<div class="clear"></div>
2013-11-23 19:16:42 +00:00
</nav>
</header>
<h2 id="subtitle">{{ .Title }}</h2>