Allow overriding HTML lang on a per-page basis (#4862)

The W3C [recommends](https://www.w3.org/International/questions/qa-html-language-declarations) to specify language using identifiers as per [RFC 5646](https://tools.ietf.org/html/rfc5646) which uses dashes.
This commit is contained in:
Steffen Uhlig
2024-06-15 11:51:28 +02:00
committed by GitHub
parent 7b6b45055c
commit b82680b103
8 changed files with 8 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
<!doctype html>
{% include copyright.html %}
<html lang="{{ site.locale | slice: 0,2 | default: "en" }}" class="no-js">
<html lang="{{ site.locale | replace: "_", "-" | default: "en" }}" class="no-js">
<head>
{% include head.html %}
{% include head/custom.html %}