athul / archie

A minimal Hugo Theme
https://athul.github.io/archie
MIT License
977 stars 299 forks source link

[lang] attribute not set in html element #86

Closed sebasrp closed 1 year ago

sebasrp commented 1 year ago

PageSpeed insights recommend to set [lang] attribute in html header of the pages - which i would expect follow the defaultContentLanguage param in config.toml

element does not have a [lang] attribute If a page doesn't specify a lang attribute, a screen reader assumes that the page is in the default language that the user chose when setting up the screen reader. If the page isn't actually in the default language, then the screen reader might not announce the page's text correctly. [Learn more about the lang attribute](https://dequeuniversity.com/rules/axe/4.6/html-has-lang).

Right now, this is not the case. attribute is not set despite config.toml defining the following:

languageCode = "en-us"
defaultContentLanguage = 'en'