diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-12 20:50:47 +0100 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-12 20:51:33 +0100 |
| commit | 686ccbfd2ed51723f4df79ba0b976e0f5fafce2f (patch) | |
| tree | 291ebb0d97b6dfb18f1f0bc86418326e0f40edd5 /src/layouts/Base.astro | |
| parent | 4171c2204fb43f5d7483b8e42432519b69bdef1f (diff) | |
Fix pages languages
Diffstat (limited to 'src/layouts/Base.astro')
| -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" |
