chore(git): merge pull request #738 from jmooring:simplify-lang-attribute

refactor: simplify lang attribute in html element

As of Hugo v0.122.4, these are equivalent:

```
{{ site.LanguageCode | default site.Language.Lang  }}
{{ site.Language.LanguageCode }}
```
See <https://gohugo.io/methods/site/language/#methods>
This commit is contained in:
Patrick Kollitsch 2024-10-18 07:01:05 +07:00 committed by GitHub
commit 773f06c207
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ site.LanguageCode | default site.Language.Lang }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}> <html lang="{{ site.Language.LanguageCode }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">