Skip to content

Commit a7e66d5

Browse files
authored
docs: add step for adding font links in svelte:head to sveltekit installation guide (#67)
* docs: add step for adding font links in svelte:head to sveltekit installation guide * style: replace tabs with spaces
1 parent ecb8ba2 commit a7e66d5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,17 @@ export default defineConfig({
129129
})
130130
]
131131
})
132+
133+
// +layout.svelte
134+
<script>
135+
import { links } from 'unplugin-fonts/head'
136+
</script>
137+
138+
<svelte:head>
139+
{#each links as link}
140+
<link {...link?.attrs || {}} />
141+
{/each}
142+
</svelte:head>
132143
```
133144

134145
Example: [`examples/sveltekit`](./examples/sveltekit)

0 commit comments

Comments
 (0)