From c4c81e83a12ac178c1e7e888effe754cca5b7834 Mon Sep 17 00:00:00 2001 From: Amir Pourmand Date: Sun, 24 Aug 2025 15:54:19 +0330 Subject: [PATCH] Update HTML direction attribute in renderPage component to prioritize frontmatter dir value --- quartz/components/renderPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/components/renderPage.tsx b/quartz/components/renderPage.tsx index 3ebfe4879..863158342 100644 --- a/quartz/components/renderPage.tsx +++ b/quartz/components/renderPage.tsx @@ -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 = (