From 2578597f7ec7e932f5e30e2c38995dc9dd6eac75 Mon Sep 17 00:00:00 2001 From: Aaron Pham <29749331+aarnphm@users.noreply.github.com> Date: Wed, 7 Feb 2024 12:29:47 -0500 Subject: [PATCH] chore(lang): lang element based on frontmatter or default locale (#819) default locale Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --- quartz/components/renderPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quartz/components/renderPage.tsx b/quartz/components/renderPage.tsx index 1ed05a7..d6bcf0a 100644 --- a/quartz/components/renderPage.tsx +++ b/quartz/components/renderPage.tsx @@ -209,8 +209,10 @@ export function renderPage( ) + const lang = componentData.frontmatter?.lang ?? cfg.locale.split("-")[0] + const doc = ( - +