git ssb

3+

gb / docs



Tree: 3d443ca471e06b90570d738e3505f892e8dff72d

Files: 3d443ca471e06b90570d738e3505f892e8dff72d / index.js

976 bytesRaw
1var 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
9metalsmith(__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