Skip to content

Commit

Permalink
docs: add step for adding font links in svelte:head to sveltekit inst…
Browse files Browse the repository at this point in the history
…allation guide (#67)

* docs: add step for adding font links in svelte:head to sveltekit installation guide

* style: replace tabs with spaces
  • Loading branch information
Mef45 committed Apr 9, 2024
1 parent ecb8ba2 commit a7e66d5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,17 @@ export default defineConfig({
})
]
})

// +layout.svelte
<script>
import { links } from 'unplugin-fonts/head'
</script>

<svelte:head>
{#each links as link}
<link {...link?.attrs || {}} />
{/each}
</svelte:head>
```

Example: [`examples/sveltekit`](./examples/sveltekit)
Expand Down

0 comments on commit a7e66d5

Please sign in to comment.