Add lang attribute to internal alias template

Closes #9586
This commit is contained in:
Joe Mooring
2022-03-01 20:27:52 -08:00
committed by Bjørn Erik Pedersen
parent cdb8b0842b
commit f98e570b17
4 changed files with 16 additions and 7 deletions

View File

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