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.
25 lines
476 B
HTML
25 lines
476 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Lang }}">
|
|
|
|
{{ partial "head.html" . }}
|
|
|
|
<body>
|
|
|
|
{{ partial "nav.html" . }}
|
|
{{ partial "header.html" . }}
|
|
|
|
<div class="container" role="main">
|
|
{{ if eq .Type "post" }}
|
|
{{ partial "post.html" . }}
|
|
{{ else if eq .Type "page" }}
|
|
{{ partial "page.html" . }}
|
|
{{ else }}
|
|
NO MATCHING PARTIAL
|
|
{{.Content}}
|
|
{{ end }}
|
|
</div>
|
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
</body>
|
|
</html>
|