Set the lang attribute in the html element to be the right language, and also add lang attributes to text in a language that is different to the page language, such as the language switcher links.
27 lines
703 B
HTML
27 lines
703 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Lang }}">
|
|
|
|
{{ partial "head.html" . }}
|
|
|
|
<body>
|
|
|
|
{{ partial "nav.html" . }}
|
|
{{ partial "header.html" . }}
|
|
|
|
{{ $data := .Data }}
|
|
|
|
<div class="container" role="main">
|
|
<article class="post-preview">
|
|
<div class="list-group col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3">
|
|
{{ range $key, $value := .Data.Terms.ByCount }}
|
|
<a href="{{ $.Site.LanguagePrefix }}/{{ $data.Plural }}/{{ $value.Name | urlize }}" class="list-group-item">
|
|
{{ $value.Name }}<span class="badge">{{ $value.Count }}</span></a>
|
|
{{ end }}
|
|
</div>
|
|
</article>
|
|
</div>
|
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
</body>
|
|
</html>
|