Skip to content

Commit 3fbd118

Browse files
committed
Refactor renderPage component to simplify HTML direction attribute assignment by removing frontmatter dir fallback
1 parent c4c81e8 commit 3fbd118

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

quartz/components/renderPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export function renderPage(
231231
)
232232

233233
const lang = componentData.fileData.frontmatter?.lang ?? cfg.locale?.split("-")[0] ?? "en"
234-
const direction = componentData.fileData.frontmatter?.dir ?? i18n(cfg.locale).direction ?? "ltr"
234+
const direction = i18n(cfg.locale).direction ?? "ltr"
235235
const doc = (
236236
<html lang={lang} dir={direction}>
237237
<Head {...componentData} />

0 commit comments

Comments
 (0)