pageWriter now writes posts first so that the post content is available for pages.

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-02-29 18:30:05 -08:00
parent ae0ed2f18f
commit 32382ae59b
3 changed files with 20 additions and 11 deletions

View File

@@ -127,7 +127,8 @@ module.exports = exports = async function (prod) {
},
[ENGINE.MARKDOWN]: (source, env) => shrink(pageTemplate({ ...env, contents: markdown('full', source, env) })),
[ENGINE.OTHER]: (source) => shrink(source),
PREVIEW: (source, env) => markdown('preview', source, env),
MARKDOWN_CONTENT: (source, env) => markdown('full', source, env),
MARKDOWN_PREVIEW: (source, env) => markdown('preview', source, env),
};
return result;