Files: 998fc4b3c7cb550271b2b2a29c1eab1ce28cc4bc / index.js
976 bytesRaw
1 | var metalsmith = require('metalsmith'), |
2 | markdown = require('metalsmith-markdown'), |
3 | layouts = require('metalsmith-layouts'), |
4 | collections = require('metalsmith-collections'), |
5 | permalinks = require('metalsmith-permalinks'), |
6 | feed = require('metalsmith-feed'), |
7 | moment = require('moment'); |
8 | |
9 | metalsmith(__dirname) |
10 | .metadata({ |
11 | site: { |
12 | title: 'ssb docs', |
13 | url: 'http://docs.gitmx.com/', |
14 | } |
15 | }) |
16 | .use(markdown()) |
17 | .use(collections({ |
18 | blog: { |
19 | pattern: './*.md', |
20 | sortBy: 'date', |
21 | reverse: 'True' |
22 | } |
23 | })) |
24 | .use(permalinks({pattern: ':collections:title', |
25 | relative: false})) |
26 | .use(feed({collection: 'blog'})) |
27 | .use(layouts({ |
28 | engine: 'jade', |
29 | moment |
30 | })) |
31 | .build(function(err) { |
32 | console.log('ssb docs are built'); |
33 | }); |
34 |
Built with git-ssb-web