forked from prakhar1989/docker-curriculum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
34 lines (33 loc) · 1.02 KB
/
Copy pathindex.js
File metadata and controls
34 lines (33 loc) · 1.02 KB
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
27
28
29
30
31
32
33
34
var Metalsmith = require('metalsmith');
var markdown = require('metalsmith-markdown');
var layouts = require('metalsmith-layouts');
var permalinks = require('metalsmith-permalinks');
var metallic = require('metalsmith-metallic');
var watch = require('metalsmith-watch');
Metalsmith(__dirname)
.metadata({
title: "A Docker Tutorial for Beginners",
description: "Learn to build and deploy your distributed applications easily to the cloud with Docker",
author: "Prakhar Srivastav",
url: "https://docker-curriculum.com/",
logo: "https://docker-curriculum.com/images/logo-small.png",
})
.source('./src')
.destination('./public')
.clean(false)
.use(metallic())
.use(markdown())
.use(permalinks())
.use(layouts({
engine: 'handlebars',
partials: {
analytics: 'partials/analytics',
sw: 'partials/sw',
meta: 'partials/meta',
masthead: 'partials/masthead',
nav: 'partials/nav',
}
}))
.build(function(err, files) {
if (err) { throw err; }
});