all repos — archive/homestead @ e13c5726846a89df4196f6abc9fc98d99d48305b

My future indieweb platform

Rename templates to njk It's specified in the nunjucks documentation. Using it allows editors to understand the syntax better

Alan Pearce
commit

e13c5726846a89df4196f6abc9fc98d99d48305b

parent

33171a749162685e42650f82041cd2af0136718d

4 files changed, 5 insertions(+), 1 deletion(-)

changed files
M src/index.jssrc/index.js
@@ -13,7 +13,11 @@
const Posts = require('./modules/posts.js') const posts = Posts.getFolder(process.env.POST_DIR) -app.use(view(`${__dirname}/views`)) +app.use( + view(`${__dirname}/views`, { + extname: 'njk' + }) +) const postsArray = Array.from(posts.entries()) router.get('/', async function (ctx) {