use blog.json instead of blog/list.json

This commit is contained in:
Rich Harris
2018-02-28 16:17:07 -05:00
parent c36780fdc8
commit 58754c6d15
3 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import posts from './_posts.js';
import posts from './blog/_posts.js';
const contents = JSON.stringify(posts.map(post => {
return {

View File

@@ -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 };
});
}

View File

@@ -430,7 +430,7 @@ function run(env) {
'blog/what-is-sapper/index.html',
'blog/why-the-name/index.html',
'blog/list.json',
'blog.json',
'blog/a-very-long-post.json',
'blog/how-can-i-get-involved.json',
'blog/how-is-sapper-different-from-next.json',