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

Regis Philibert
03.55.2023 c62bf443795da3144b5330c095d465f08b378b95
html[lang]: use  `site.Language.Lang` when `languageCode` is not set. (#617)

Fixes #613
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 "en" }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}>
<html lang="{{ site.LanguageCode | default site.Language.Lang  }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">