prefetch links
This commit is contained in:
@ -5,16 +5,14 @@
|
||||
const post = await import(`./_posts/${metadata.slug}.svx`);
|
||||
return {
|
||||
props: {
|
||||
meta: post.metadata,
|
||||
body: post.default,
|
||||
post: post.default,
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
import Post from '$lib/Post.svelte';
|
||||
export let meta, body;
|
||||
export let post;
|
||||
</script>
|
||||
|
||||
<Post {meta} {body}></Post>
|
||||
<svelte:component this={post} />
|
||||
|
Reference in New Issue
Block a user