We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 084ffa9 commit f6fcbc0Copy full SHA for f6fcbc0
packages/astro/src/default/pages/index.astro
@@ -1,4 +1,5 @@
1
---
2
+import MetaTags from '../components/MetaTags.astro';
3
import { getTutorial } from '../utils/content';
4
import { joinPaths } from '../utils/url';
5
@@ -9,11 +10,13 @@ const part = lesson.part && tutorial.parts[lesson.part.id];
9
10
const chapter = lesson.chapter && part?.chapters[lesson.chapter.id];
11
12
const slug = [part?.slug, chapter?.slug, lesson.slug].filter(Boolean).join('/');
13
+const meta = lesson.data?.meta ?? {};
14
15
const redirect = joinPaths(import.meta.env.BASE_URL, `/${slug}`);
16
17
18
<!doctype html>
19
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
20
<title>Redirecting to {redirect}</title>
21
+<MetaTags slot="meta" meta={meta} />
22
<meta http-equiv="refresh" content=`0;url=${redirect}` />
0 commit comments