Currently this theme uses .Site.LanguageCode in
https://github.com/scientific-python/scientific-python-hugo-theme/blob/main/layouts/_default/baseof.html#L2
which should be .Site.Language.Locale instead:
WARN deprecated: .Site.LanguageCode was deprecated in Hugo v0.158.0 and will be removed in a future release. Use .Site.Language.Locale instead.
Making the change locally get's rid of the warning:
index 074fefc..9bba189 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="{{ .Site.LanguageCode }}" data-colorscheme="{{ .Site.Params.colorScheme }}" >
+<html lang="{{ .Site.Language.Locale }}" data-colorscheme="{{ .Site.Params.colorScheme }}" >
<head>
{{ print "<!-- Generated " (time.Now.UTC.Format "2006-01-02 15:04:05 UTC") " -->" | safeHTML }}
{{ partial "meta.html" . }}
Currently this theme uses
.Site.LanguageCodeinhttps://github.com/scientific-python/scientific-python-hugo-theme/blob/main/layouts/_default/baseof.html#L2
which should be
.Site.Language.Localeinstead:Making the change locally get's rid of the warning: