git ssb

0+

gb / gwenbell.com



Tree: 051e9d17afbbfd5c233b2ff90ed077d635fa65fa

Files: 051e9d17afbbfd5c233b2ff90ed077d635fa65fa / build.js

974 bytesRaw
1var metalsmith = require('metalsmith'),
2 markdown = require('metalsmith-markdown'),
3 layouts = require('metalsmith-layouts'),
4 permalinks = require('metalsmith-permalinks'),
5 collections = require('metalsmith-collections'),
6 moment = require('moment');
7
8metalsmith(__dirname)
9 .metadata({
10 site: {
11 title: 'Gwen Bell | Love & Code | Mexico',
12 url: 'http://gwenbell.com/',
13 author: 'Gwendolyn Bell',
14 photo: 'g.jpg'
15 }
16 })
17 .use(markdown())
18 .use(collections({
19 blog: {
20 pattern: './blog/*.md',
21 sortBy: 'date',
22 reverse: true
23 },
24 }))
25 .use(permalinks({
26 pattern: ':collections/:title',
27 relative: false
28 }))
29 .use(layouts({
30 engine: 'jade',
31 moment
32 }))
33 .destination('./build')
34 .build(function(err) {
35 if (err) {throw err;}
36 else { console.log('success. mezcalle is built.'); }
37 });
38

Built with git-ssb-web