From 6ed3797b3a5dc3d5b44ab102eaad4f965dab6aaa Mon Sep 17 00:00:00 2001 From: Ro Date: Sun, 21 Jun 2020 14:23:23 -0700 Subject: [PATCH] added some quick notes to update rendering, changed index template id to 0 since it is always present --- brain/data/Book.js | 2 +- brain/data/Render.js | 1 + site/init/index-template.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/brain/data/Book.js b/brain/data/Book.js index cfb0d88..cd1ab93 100644 --- a/brain/data/Book.js +++ b/brain/data/Book.js @@ -29,7 +29,7 @@ export default class Book { getPage(id) { return new Promise((resolve, reject) => { fh.create() - .paths("content/pages") + .paths('content/pages') .ext('md') .find() .then(files => { diff --git a/brain/data/Render.js b/brain/data/Render.js index 368cb52..d39a882 100644 --- a/brain/data/Render.js +++ b/brain/data/Render.js @@ -103,6 +103,7 @@ export default class Render { } } else { //don't render delete pages + //check to see if deleted pages have been renderered and delete them } } }) diff --git a/site/init/index-template.md b/site/init/index-template.md index 55beedb..fef6283 100644 --- a/site/init/index-template.md +++ b/site/init/index-template.md @@ -1,5 +1,5 @@ --- -id: 1 +id: 0 uuid: title: This is the Start feature: /assets/images/global/default-bg.jpg