setup: first svelte setup
This commit is contained in:
11
src/routes/+layout.svelte
Normal file
11
src/routes/+layout.svelte
Normal file
@@ -0,0 +1,11 @@
|
||||
<script lang="ts">
|
||||
import favicon from '$lib/assets/favicon.svg';
|
||||
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<link rel="icon" href={favicon} />
|
||||
</svelte:head>
|
||||
|
||||
{@render children?.()}
|
||||
9
src/routes/+page.svelte
Normal file
9
src/routes/+page.svelte
Normal file
@@ -0,0 +1,9 @@
|
||||
<script>
|
||||
let numbers = 0;
|
||||
for (let i = 1; i < 10; i++) {
|
||||
numbers++;
|
||||
}
|
||||
</script>
|
||||
|
||||
<h1>Welcome to SvelteKit {numbers}</h1>
|
||||
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
|
||||
11
src/routes/test/+page.svx
Normal file
11
src/routes/test/+page.svx
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
layout: blog
|
||||
---
|
||||
|
||||
# Title
|
||||
|
||||
---
|
||||
|
||||
1. asd
|
||||
2. asd
|
||||
3. asd
|
||||
Reference in New Issue
Block a user