Commit a16f1e60 authored by wu-lee's avatar wu-lee

metalsmith.js - exclude the email-templates directory

So we can put email templates in the source repo and exclude them from
being processed onto the wiki.

Update the example-config.js to mention this.
parent 06a9d314
......@@ -37,8 +37,9 @@ module.exports = {
acknowledgement: "Thanks for registering!",
},
templates: {
// notification: 'path/to/notification-template.hbs',
// acknowledgement: 'path/to/acknowledgement-template.hbs',
// Note: recommended place for templates is in src/email-templates/.
// notification: 'src/email-templates/notification-template.hbs',
// acknowledgement: 'src/email-templates/acknowledgement-template.hbs',
// Theme config file included in template context under 'config' key.
// Also, request under 'request'
},
......
......@@ -134,6 +134,7 @@ module.exports = () => {
.ignore([
'**/*~', // Emacs backup files
'.*', // dotfiles
'email-templates', // email templates directory
])
.clean(true) // clean destination before building
.use(metalsmithDebug())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment