mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
18.01.2024 773f06c207bf99a02b4c43d9bd46137ef556eb8b
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>
1 files modified
2 ■■■ changed files
layouts/_default/baseof.html 2 ●●● patch | view | raw | blame | history
layouts/_default/baseof.html
@@ -1,5 +1,5 @@
<!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>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">