make basepath-friendly

This commit is contained in:
Rich Harris
2018-03-16 20:25:15 -04:00
parent 1a5f69c593
commit d5e1c99ef6
8 changed files with 25 additions and 27 deletions

View File

@@ -59,7 +59,7 @@
// is called [slug].html
const { slug } = params;
return fetch(`/blog/${slug}.json`).then(r => r.json()).then(post => {
return fetch(`blog/${slug}.json`).then(r => r.json()).then(post => {
return { post };
});
}