figure out how everything works again

This commit is contained in:
2022-05-11 20:41:23 -07:00
parent 8c6e39c6e6
commit 8d51cab348
8 changed files with 31 additions and 41 deletions

View File

@ -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,