Skip to content

Commit

Permalink
baseof.html: Use .LanguageCode for <html> lang attribute
Browse files Browse the repository at this point in the history
`.Language.LanguageCode` gives the value of the `languageCode` option in
Hugo's multilingual configuration, which Hugo documentation recommends
for the `lang` attribute of the `<html>` element.
  • Loading branch information
Leo3418 committed Aug 19, 2023
1 parent 8152f97 commit c8e7afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<https://github.com/mmistakes/minimal-mistakes>
-->` }}

<html lang="{{ .Language.Lang }}">
<html lang="{{ .Language.LanguageCode }}">
<head>
{{- partial "head.html" . }}
</head>
Expand Down

0 comments on commit c8e7afb

Please sign in to comment.