Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multilingual/layouts/partials/header.html')
-rw-r--r--examples/multilingual/layouts/partials/header.html6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/multilingual/layouts/partials/header.html b/examples/multilingual/layouts/partials/header.html
index e5209f5df..f08c3523c 100644
--- a/examples/multilingual/layouts/partials/header.html
+++ b/examples/multilingual/layouts/partials/header.html
@@ -4,11 +4,7 @@
<a href="/kodu">Eesti</a>
</nav>
- {{ if (eq .Params.lang "et") }}
- <h1 id="title">Minu mitmekeelne leht</h1>
- {{ else }}
- <h1 id="title">My multilingual site</h1>
- {{ end }}
+ <h1 id="title">{{ (index .Site.Data.translations .Params.lang).title }}</h1>
<nav id="main-menu">
{{ range (index .Site.Taxonomies.menu .Params.lang).Pages }}