From 9dd8be25f4b5bc5f2479d7f37aefbd368d3dfdf7 Mon Sep 17 00:00:00 2001 From: Ro Date: Wed, 24 Jun 2020 14:47:32 -0700 Subject: [PATCH] index markdown page renders to correct file name on change, changed published flag to true in index template file --- brain/data/Book.js | 2 +- site/init/index-template.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/brain/data/Book.js b/brain/data/Book.js index 46aa08d..0d67bb3 100644 --- a/brain/data/Book.js +++ b/brain/data/Book.js @@ -147,7 +147,7 @@ export default class Book { '---\n' + body.content; layout === 'index' - ? (path = 'content/pages/' + body.slug + '.md') + ? (path = 'content/pages/index.md') : (path = 'content/pages/' + moment(body.created).format('YYYY') + diff --git a/site/init/index-template.md b/site/init/index-template.md index fef6283..0da8a99 100644 --- a/site/init/index-template.md +++ b/site/init/index-template.md @@ -12,7 +12,7 @@ updated: deleted: false menu: false featured: false -published: false +published: true slug: index --- # F**k Yes