diff options
author | Joe Mooring <joe.mooring@veriphor.com> | 2022-03-01 20:27:52 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-09 19:06:59 +0100 |
commit | f98e570b17d99e0ca7a6e6792a4c741cfc8b81e8 (patch) | |
tree | f6229a5f19b9dc353c2693ff7b6f588a2fedb898 /tpl | |
parent | cdb8b0842b5371b03fffe5488864e3fabf7f5c03 (diff) |
Add lang attribute to internal alias template
Closes #9586
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/tplimpl/embedded/templates/alias.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tpl/tplimpl/embedded/templates/alias.html b/tpl/tplimpl/embedded/templates/alias.html index ee3f556e5..8448760fa 100644 --- a/tpl/tplimpl/embedded/templates/alias.html +++ b/tpl/tplimpl/embedded/templates/alias.html @@ -1 +1,10 @@ -<!DOCTYPE html><html><head><title>{{ .Permalink }}</title><link rel="canonical" href="{{ .Permalink }}"/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url={{ .Permalink }}" /></head></html>
\ No newline at end of file +<!DOCTYPE html> +<html{{ with site.LanguageCode | default site.Language.Lang }} lang="{{ . }}"{{ end }}> + <head> + <title>{{ .Permalink }}</title> + <link rel="canonical" href="{{ .Permalink }}"> + <meta name="robots" content="noindex"> + <meta charset="utf-8"> + <meta http-equiv="refresh" content="0; url={{ .Permalink }}"> + </head> +</html> |