Skip to content

Commit 287e05a

Browse files
authored
add label to tutorial parts (#336)
1 parent bc41e69 commit 287e05a

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Basic Svelte
3+
label: Part 1
34
scope: { 'prefix': '/src/lib/', 'name': 'src' }
45
focus: /src/lib/App.svelte
56
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Advanced Svelte
3+
label: Part 2
34
scope: { 'prefix': '/src/lib/', 'name': 'src' }
45
focus: /src/lib/App.svelte
56
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Basic SvelteKit
3+
label: Part 3
34
scope: { 'prefix': '/', 'name': 'project' }
45
focus: /src/routes/+page.svelte
56
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Advanced SvelteKit
3+
label: Part 4
34
scope: { 'prefix': '/', 'name': 'project' }
45
focus: /src/routes/+page.svelte
56
---

apps/svelte.dev/src/routes/tutorial/[...slug]/content.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export async function load_exercise(slug: string): Promise<Exercise> {
249249
part: {
250250
slug: part.slug,
251251
title: part.metadata.title,
252-
label: 'TODO' // 'Part 1' etc
252+
label: part.metadata.label
253253
},
254254
chapter: {
255255
slug: chapter.slug,

0 commit comments

Comments
 (0)