Set correct HTML and RSS language.

Before: Global value for everything.
After: Right value for translations.
This commit is contained in:
tastytea 2021-07-09 13:39:25 +02:00
parent 940ef63cd5
commit f682b9da6f
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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 }}