mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
chore(lang): lang element based on frontmatter or default locale (#819)
default locale Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
parent
ce413b4bae
commit
2578597f7e
1 changed files with 3 additions and 1 deletions
|
@ -209,8 +209,10 @@ export function renderPage(
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const lang = componentData.frontmatter?.lang ?? cfg.locale.split("-")[0]
|
||||||
|
|
||||||
const doc = (
|
const doc = (
|
||||||
<html>
|
<html lang={lang}>
|
||||||
<Head {...componentData} />
|
<Head {...componentData} />
|
||||||
<body data-slug={slug}>
|
<body data-slug={slug}>
|
||||||
<div id="quartz-root" class="page">
|
<div id="quartz-root" class="page">
|
||||||
|
|
Loading…
Reference in a new issue