diff --git a/packages/astro/src/default/pages/index.astro b/packages/astro/src/default/pages/index.astro index f832ed32..443df896 100644 --- a/packages/astro/src/default/pages/index.astro +++ b/packages/astro/src/default/pages/index.astro @@ -1,4 +1,5 @@ --- +import MetaTags from '../components/MetaTags.astro'; import { getTutorial } from '../utils/content'; import { joinPaths } from '../utils/url'; @@ -9,6 +10,7 @@ const part = lesson.part && tutorial.parts[lesson.part.id]; const chapter = lesson.chapter && part?.chapters[lesson.chapter.id]; const slug = [part?.slug, chapter?.slug, lesson.slug].filter(Boolean).join('/'); +const meta = lesson.data?.meta ?? {}; const redirect = joinPaths(import.meta.env.BASE_URL, `/${slug}`); --- @@ -16,4 +18,5 @@ const redirect = joinPaths(import.meta.env.BASE_URL, `/${slug}`);