File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/astro/src/default/pages Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+ import MetaTags from ' ../components/MetaTags.astro' ;
2
3
import { getTutorial } from ' ../utils/content' ;
3
4
import { joinPaths } from ' ../utils/url' ;
4
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 ];
10
11
11
12
const slug = [part ?.slug , chapter ?.slug , lesson .slug ].filter (Boolean ).join (' /' );
13
+ const meta = lesson .data ?.meta ?? {};
12
14
13
15
const redirect = joinPaths (import .meta .env .BASE_URL , ` /${slug } ` );
14
16
---
15
17
16
18
<!doctype html >
17
19
<link rel =" icon" type =" image/svg+xml" href =" /favicon.svg" />
18
20
<title >Redirecting to { redirect } </title >
21
+ <MetaTags slot =" meta" meta ={ meta } />
19
22
<meta http-equiv =" refresh" content =`0;url=${redirect }` />
You can’t perform that action at this time.
0 commit comments