Set correct HTML and RSS language.
Before: Global value for everything. After: Right value for translations.
This commit is contained in:
parent
940ef63cd5
commit
f682b9da6f
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ default "en" .Site.LanguageCode }}">
|
||||
<html lang="{{ default "en" .Lang }}">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{{ if and (.Title) (not (eq .Title .Site.Title)) }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
|
||||
|
@ -11,7 +11,7 @@
|
||||
<link>{{ .Permalink }}</link>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||
<generator>Hugo {{ hugo.Version }} -- gohugo.io</generator>
|
||||
{{- with .Site.LanguageCode }}
|
||||
{{- with .Lang }}
|
||||
<language>{{ . }}</language>
|
||||
{{- end }}
|
||||
{{- with .Site.Author.email }}
|
||||
|
Reference in New Issue
Block a user