prefetch links
This commit is contained in:
@ -4,8 +4,7 @@
|
||||
let post = await import(`./_posts/${page.params.slug}.svx`);
|
||||
return {
|
||||
props: {
|
||||
meta: post.metadata,
|
||||
body: post.default
|
||||
post: post.default
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -19,8 +18,7 @@
|
||||
</script>
|
||||
|
||||
<script>
|
||||
import Post from '$lib/Post.svelte';
|
||||
export let meta, body;
|
||||
export let post;
|
||||
</script>
|
||||
|
||||
<Post {meta} {body}></Post>
|
||||
<svelte:component this={post} />
|
||||
|
@ -22,4 +22,10 @@ are a pain, and it seems to be a pretty intractable problem.
|
||||
|
||||
You know what aren't a pain, or at least not nearly to the same extent? Keys.
|
||||
That's right, physical stick-em-in-a-lock-and-turn metal keys. They've been
|
||||
around since forever, and I doubt they'll be going anywhere any time soon.
|
||||
around since forever, and I doubt they'll be going anywhere any time soon.
|
||||
|
||||
[External link](https://www.google.com)
|
||||
|
||||
[Internal link](/posts)
|
||||
|
||||
[Internal absolute link](http://localhost:3000/simpler-socketio)
|
@ -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