Skip to content

Commit fc13799

Browse files
authored
Migrate to latest version of SvelteKit (sveltejs#98)
* migration part 1 - vite, renamed files * solve migration tasks * remove obsolete _ shenanigans * bump site-kit * migrate tutorial apps * update text
1 parent de91588 commit fc13799

File tree

54 files changed

+551
-526
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+551
-526
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

content/tutorial/02-sveltekit/02-routing/01-pages/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
title: Pages
33
---
44

5-
SvelteKit uses filesystem-based routing, which means that the _routes_ of your app — in other words, what the app should do when a user navigates to a particular URL — follow the same structure as your source code.
5+
SvelteKit uses filesystem-based routing, which means that the _routes_ of your app — in other words, what the app should do when a user navigates to a particular URL — are defined by the directories in your codebase.
66

7-
In this app we have two routes — `src/routes/index.svelte`, which maps to `/`, and `src/routes/about.svelte`, which maps to `/about`. Clicking the `about` link will take you from the home page to the about page.
7+
In this app we have two routes — `src/routes/+page.svelte`, which maps to `/`, and `src/routes/about/+page.svelte`, which maps to `/about`. Clicking the `about` link will take you from the home page to the about page.
88

99
> Unlike traditional multi-page apps, navigating to `/about` updates the contents of the current page, like a single-page app. This gives us the best of both worlds — fast server-rendered startup, then instant navigation.
1010
11-
Let's add a link in `src/routes/about.svelte` back to the homepage:
11+
Let's add a link in `src/routes/about/+page.svelte` back to the homepage:
1212

1313
```svelte
1414
<p>This is the about page.</p>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)