From 51818efc38eae1e4d300f004cb637d2f75a7f41a Mon Sep 17 00:00:00 2001
From: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Date: Thu, 08 Feb 2024 16:45:20 +0000
Subject: [PATCH] fix(umami): format correct string from custom hosts (#826)
---
quartz/components/renderPage.tsx | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
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 @@
</div>
)
+ const lang = componentData.frontmatter?.lang ?? cfg.locale.split("-")[0]
+
const doc = (
- <html>
+ <html lang={lang}>
<Head {...componentData} />
<body data-slug={slug}>
<div id="quartz-root" class="page">
--
Gitblit v1.10.0