Repository: gohugoio/hugo (language: go)

Issue:
create/skeletons: Remove superfluous language code fallback 
https://github.com/gohugoio/hugo/blob/b1bf0bff2c8ce1e2cace5010a81911a3dbf8e674/create/skeletons/theme/layouts/_default/baseof.html#L2

With v0.112.0 and later, `site.Language.LanguageCode` falls back to `site.Language.Lang`, so the explicit fallback above is not required.


Discussion / hints:

Fix patch:
diff --git a/create/skeletons/theme/layouts/_default/baseof.html b/create/skeletons/theme/layouts/_default/baseof.html
index ce9613a2bd1..479c897137a 100644
--- a/create/skeletons/theme/layouts/_default/baseof.html
+++ b/create/skeletons/theme/layouts/_default/baseof.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html lang="{{ or site.Language.LanguageCode site.Language.Lang }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
+<html lang="{{ or site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
 <head>
   {{ partial "head.html" . }}
 </head>


Test patch: