We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b557f7d commit 4a782abCopy full SHA for 4a782ab
.posthtmlrc.js
@@ -12,6 +12,7 @@ module.exports = {
12
"plugins": {
13
"posthtml-expressions": {
14
"locals": {
15
+ "lang": config.language,
16
"title": config.display,
17
"javascript": i18n.t("index.javascript"),
18
"legacy_page_prompt_pre": i18n.t("index.legacy_page_prompt_pre"),
index.html
@@ -1,8 +1,8 @@
1
<!DOCTYPE html>
2
-<html lang="en">
+<!-- {{ }} is posthtml-expressions syntax -->
3
+<html lang="{{ lang }}">
4
<head>
5
<meta charset="utf-8" />
- <!-- {{ }} is posthtml-expressions syntax -->
6
<title>{{ title }}</title>
7
<each loop="v, k in meta">
8
<meta property="{{ k }}" content="{{ v }}">
0 commit comments