mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 12:12:37 +00:00
d4f2122dea
Configuration: - languageCode -> locale (either in root or per-language) - languageName -> label - languageDirection -> direction Methods: - .Language.LanguageCode -> .Language.Locale - .Language.LanguageName -> .Language.Label - .Language.LanguageDirection -> .Language.Direction - .Site.LanguageCode -> .Site.Language.Locale Example configuration: [languages.en] direction = 'ltr' label = 'English' locale = 'en-US' weight = 1 Closes #14269 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
10 lines
309 B
HTML
10 lines
309 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ site.Language.Locale }}">
|
|
<head>
|
|
<title>{{ .Permalink }}</title>
|
|
{{ with .OutputFormats.Canonical }}<link rel="{{ .Rel }}" href="{{ .Permalink }}">{{ end }}
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="refresh" content="0; url={{ .Permalink }}">
|
|
</head>
|
|
</html>
|