forked from projects/fipamo
added some quick notes to update rendering, changed index template id to 0 since it is always present
This commit is contained in:
parent
9c1dbe00ad
commit
6ed3797b3a
3 changed files with 3 additions and 2 deletions
|
@ -29,7 +29,7 @@ export default class Book {
|
||||||
getPage(id) {
|
getPage(id) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
fh.create()
|
fh.create()
|
||||||
.paths("content/pages")
|
.paths('content/pages')
|
||||||
.ext('md')
|
.ext('md')
|
||||||
.find()
|
.find()
|
||||||
.then(files => {
|
.then(files => {
|
||||||
|
|
|
@ -103,6 +103,7 @@ export default class Render {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//don't render delete pages
|
//don't render delete pages
|
||||||
|
//check to see if deleted pages have been renderered and delete them
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
id: 1
|
id: 0
|
||||||
uuid:
|
uuid:
|
||||||
title: This is the Start
|
title: This is the Start
|
||||||
feature: /assets/images/global/default-bg.jpg
|
feature: /assets/images/global/default-bg.jpg
|
||||||
|
|
Loading…
Reference in a new issue