mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-09 07:03:38 +00:00
fix: set default locale for lang attribute
This commit is contained in:
parent
fd785ada56
commit
a87704cd05
2 changed files with 3 additions and 3 deletions
quartz/components
|
@ -209,8 +209,7 @@ export function renderPage(
|
|||
</div>
|
||||
)
|
||||
|
||||
const lang = componentData.frontmatter?.lang ?? cfg.locale.split("-")[0]
|
||||
|
||||
const lang = componentData.frontmatter?.lang ?? cfg.locale?.split("-")[0] ?? "en"
|
||||
const doc = (
|
||||
<html lang={lang}>
|
||||
<Head {...componentData} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue