mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-14 20:14:39 +00:00
use blog.json instead of blog/list.json
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import posts from './_posts.js';
|
||||
import posts from './blog/_posts.js';
|
||||
|
||||
const contents = JSON.stringify(posts.map(post => {
|
||||
return {
|
||||
@@ -32,7 +32,7 @@
|
||||
},
|
||||
|
||||
preload({ params, query }) {
|
||||
return fetch(`/blog/list.json`).then(r => r.json()).then(posts => {
|
||||
return fetch(`/blog.json`).then(r => r.json()).then(posts => {
|
||||
return { posts };
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user