nicco.io/src/routes/works.svelte
2020-09-28 14:40:04 +02:00

23 lines
436 B
Svelte

<script context="module">
export async function preload() {
return this.fetch('/api/works.json').then((res) => res.json())
}
</script>
<script>
import SimplePage from '../components/SimplePage.svelte'
import Work from '../components/Work.svelte'
export let data
</script>
<svelte:head>
<title>Works</title>
</svelte:head>
<SimplePage title="Works">
{#each data as work}
<Work {work} />
{/each}
</SimplePage>