mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-22 22:45:19 +00:00
make basepath-friendly
This commit is contained in:
@@ -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 };
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user