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/pages/micro | |
| parent | 4171c2204fb43f5d7483b8e42432519b69bdef1f (diff) | |
Fix pages languages
Diffstat (limited to 'src/pages/micro')
| -rw-r--r-- | src/pages/micro/[...slug].astro | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pages/micro/[...slug].astro b/src/pages/micro/[...slug].astro index 4cfae32..681c106 100644 --- a/src/pages/micro/[...slug].astro +++ b/src/pages/micro/[...slug].astro @@ -3,6 +3,7 @@ import { getCollection } from "astro:content"; import type { GetStaticPaths, InferGetStaticPropsType } from "astro"; import Note from "@/components/note/Note.astro"; import PageLayout from "@/layouts/Base.astro"; +import { siteConfig } from "@/site.config"; // if you're using an adaptor in SSR mode, getStaticPaths wont work -> https://docs.astro.build/en/guides/routing/#modifying-the-slug-example-for-ssr export const getStaticPaths = (async () => { @@ -24,6 +25,7 @@ const meta = { note.data.description || `Read about my note posted on: ${note.data.publishDate.toLocaleDateString()}`, title: note.data.title, + lang: note.data.language || siteConfig.lang, }; --- |
