From ca284778b257698457116d65bc9559dbb37a1166 Mon Sep 17 00:00:00 2001
From: Miguel Pimentel <contact@miguelpimentel.do>
Date: Wed, 07 Feb 2024 17:57:14 +0000
Subject: [PATCH] add Spanish translations (#822)
---
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