forked from petermorlion/RedStarITSite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
26 lines (24 loc) · 741 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require('./node_modules/harmonize')();
var Metalsmith = require('./node_modules/metalsmith'),
drafts = require('./node_modules/metalsmith-drafts'),
less = require('./node_modules/metalsmith-less'),
layouts = require('./node_modules/metalsmith-layouts'),
markdown = require('./node_modules/metalsmith-markdown'),
skeletongallery = require('./node_modules/metalsmith-skeleton-gallery');
Metalsmith(__dirname)
.source('./src')
.destination('./build')
.use(drafts())
.use(markdown())
.use(less())
.use(skeletongallery({
root: './images',
columns: 'two'
}))
.use(layouts({
engine: 'handlebars',
partials: 'partials'
}))
.build(function(err) {
if (err) throw err;
});