From d5c15ebde47573f30fb52365156219a311b57c70 Mon Sep 17 00:00:00 2001 From: "Jocelyn Badgley (Twipped)" Date: Sat, 29 Feb 2020 18:33:31 -0800 Subject: [PATCH] Pages, not posts --- build/engines.js | 4 ++-- scss/{_post.scss => _page.scss} | 0 scss/style.scss | 2 +- templates/{post.hbs => page.hbs} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename scss/{_post.scss => _page.scss} (100%) rename templates/{post.hbs => page.hbs} (100%) diff --git a/build/engines.js b/build/engines.js index 58cc55e..f33a520 100644 --- a/build/engines.js +++ b/build/engines.js @@ -101,12 +101,12 @@ module.exports = exports = async function (prod) { } } - const pageTemplateRaw = await readFile('templates/post.hbs'); + const pageTemplateRaw = await readFile('templates/page.hbs'); if (!pageTemplateRaw) throw new Error('Post template was empty?'); try { var pageTemplate = handlebars.compile(pageTemplateRaw.toString('utf8')); } catch (e) { - log.error('Crash while loading post template', e); + log.error('Crash while loading page template', e); } const revManifest = prod && await fs.readJson(resolve('rev-manifest.json')).catch(() => {}).then((r) => r || {}); diff --git a/scss/_post.scss b/scss/_page.scss similarity index 100% rename from scss/_post.scss rename to scss/_page.scss diff --git a/scss/style.scss b/scss/style.scss index 8ba521a..a4d4784 100644 --- a/scss/style.scss +++ b/scss/style.scss @@ -96,7 +96,7 @@ $header-full-height: 100px; @import "./footer"; @import "./tweet"; @import "./index"; -@import "./post"; +@import "./page"; @import "./card"; @import "./grid-row"; @import "./markup"; diff --git a/templates/post.hbs b/templates/page.hbs similarity index 100% rename from templates/post.hbs rename to templates/page.hbs