ace-documentation icon indicating copy to clipboard operation
ace-documentation copied to clipboard

Enable to apply LanguageCode to `lang` attribute of `<html>` element

Open af12066 opened this issue 2 years ago • 0 comments

In this change, we are able to use LanguageCode in the config.toml to lang attribute of the <html> element. lang attribute has an important role in the behavior of screen readers in web accessibility (details).

ref.

  • https://gohugo.io/getting-started/configuration/#languagecode
  • https://github.com/gohugoio/hugo/blob/90da7664bf1f3a0ca2e18144b5deacf532c6e3cf/tpl/tplimpl/embedded/templates/alias.html#L2

af12066 avatar Feb 22 '23 09:02 af12066