mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 05:14:06 -06:00
Update HTML direction attribute in renderPage component to prioritize frontmatter dir value
This commit is contained in:
parent
58a3735578
commit
c4c81e83a1
@ -231,7 +231,7 @@ export function renderPage(
|
||||
)
|
||||
|
||||
const lang = componentData.fileData.frontmatter?.lang ?? cfg.locale?.split("-")[0] ?? "en"
|
||||
const direction = i18n(cfg.locale).direction ?? "ltr"
|
||||
const direction = componentData.fileData.frontmatter?.dir ?? i18n(cfg.locale).direction ?? "ltr"
|
||||
const doc = (
|
||||
<html lang={lang} dir={direction}>
|
||||
<Head {...componentData} />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user