Skip to content

Commit 4a782ab

Browse files
Specify HTML Lang code
1 parent b557f7d commit 4a782ab

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.posthtmlrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = {
1212
"plugins": {
1313
"posthtml-expressions": {
1414
"locals": {
15+
"lang": config.language,
1516
"title": config.display,
1617
"javascript": i18n.t("index.javascript"),
1718
"legacy_page_prompt_pre": i18n.t("index.legacy_page_prompt_pre"),

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<!-- {{ }} is posthtml-expressions syntax -->
3+
<html lang="{{ lang }}">
34
<head>
45
<meta charset="utf-8" />
5-
<!-- {{ }} is posthtml-expressions syntax -->
66
<title>{{ title }}</title>
77
<each loop="v, k in meta">
88
<meta property="{{ k }}" content="{{ v }}">

0 commit comments

Comments
 (0)