figure out how everything works again
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
<script context="module">
|
||||
export async function load({ fetch }) {
|
||||
const resp = await fetch('/latest.json');
|
||||
const metadata = await resp.json();
|
||||
const post = await import(`./_posts/${metadata.slug}.svx`);
|
||||
const postMeta = await resp.json();
|
||||
const post = await import(`./_posts/${postMeta.slug}.svx`);
|
||||
return {
|
||||
props: {
|
||||
post: post.default,
|
||||
|
Reference in New Issue
Block a user