link prefetching

This commit is contained in:
Joseph Montanaro
2021-10-19 08:53:03 -07:00
parent 481eac817e
commit 18e8883063
6 changed files with 25 additions and 24 deletions

View File

@ -1,7 +1,7 @@
<script context="module">
export async function load({ fetch }) {
const resp = await fetch('/latest.json');
const metadata = (await resp.json());
const metadata = await resp.json();
const post = await import(`./_posts/${metadata.slug}.svx`);
return {
props: {