Pages, not posts

This commit is contained in:
Jocelyn Badgley (Twipped) 2020-02-29 18:33:31 -08:00
parent 32382ae59b
commit d5c15ebde4
4 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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";