mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-19 13:55:21 +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 => {
|
const contents = JSON.stringify(posts.map(post => {
|
||||||
return {
|
return {
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
preload({ params, query }) {
|
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 };
|
return { posts };
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -430,7 +430,7 @@ function run(env) {
|
|||||||
'blog/what-is-sapper/index.html',
|
'blog/what-is-sapper/index.html',
|
||||||
'blog/why-the-name/index.html',
|
'blog/why-the-name/index.html',
|
||||||
|
|
||||||
'blog/list.json',
|
'blog.json',
|
||||||
'blog/a-very-long-post.json',
|
'blog/a-very-long-post.json',
|
||||||
'blog/how-can-i-get-involved.json',
|
'blog/how-can-i-get-involved.json',
|
||||||
'blog/how-is-sapper-different-from-next.json',
|
'blog/how-is-sapper-different-from-next.json',
|
||||||
|
|||||||
Reference in New Issue
Block a user