diff options
Diffstat (limited to 'src/layouts')
| -rw-r--r-- | src/layouts/Base.astro | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index 41a56dd..fe5c064 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -12,13 +12,19 @@ interface Props { } const { - meta: { articleDate, description = siteConfig.description, ogImage, title }, + meta: { articleDate, description = siteConfig.description, ogImage, title, lang }, } = Astro.props; --- -<html class="scroll-smooth" lang={siteConfig.lang}> +<html class="scroll-smooth" lang={lang ?? siteConfig.lang}> <head> - <BaseHead articleDate={articleDate} description={description} ogImage={ogImage} title={title} /> + <BaseHead + articleDate={articleDate} + description={description} + ogImage={ogImage} + title={title} + {...lang ? { lang } : {}} + /> </head> <body class="bg-global-bg text-global-text mx-auto flex min-h-screen max-w-3xl flex-col px-4 pt-16 font-mono text-sm font-normal antialiased sm:px-8" |
