From 9d82d25febea92a1a1821746028844ee4c7b8eb8 Mon Sep 17 00:00:00 2001 From: Jayyyu1w <75748924+Jayyyu1w@users.noreply.github.com> Date: Wed, 1 May 2024 01:08:21 +0800 Subject: [PATCH] fix: set html lang to siteConfig lang (#73) --- src/layouts/Layout.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index a9fcff8..8cd0ef0 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -68,10 +68,12 @@ if (title) { const favicons: Favicon[] = siteConfig.favicon.length > 0 ? siteConfig.favicon : defaultFavicons +const siteLang = siteConfig.lang.replace('_', '-') + --- - +