-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.js
63 lines (58 loc) · 1.75 KB
/
build.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
'use strict';
var Metalsmith = require('metalsmith'),
markdown = require('metalsmith-markdown'),
layouts = require('metalsmith-layouts'),
define = require('metalsmith-define'),
permalinks = require('metalsmith-permalinks'),
css = require('metalsmith-clean-css'),
fingerprint= require('metalsmith-fingerprint'),
inPlace = require('metalsmith-in-place'),
multiLanguage = require('metalsmith-multi-language'),
i18n = require('metalsmith-i18n'),
collections = require('metalsmith-collections'),
highlighter = require('highlighter');
const DEFAULT_LOCALE = 'en';
const LOCALES = ['fr', 'en'];
Metalsmith(__dirname)
.source('src')
.destination('dist')
.use(define({
Site: {
url: 'www.celine-oliveira.com',
title: 'Céline Oliveira | Hypnothérapeute à Vanves',
description: "Accompagnement à la naissance, gestion du stress, troubles du sommeil, confiance en soi,... Venez bénéficier des bienfaits de l'hypnose pour reprendre le contrôle de vie"
},
googleAnalytics: '',
owner: {
url: '',
name: ''
},
moment: require('moment')
}))
.use(markdown({
"gfm": true,
"breaks": true,
"tables": true,
highlight: highlighter()
}))
.use(permalinks({
relative: false,
pattern: ':title/',
}))
.use(css({
files:"src/styles/*.css",
cleanCSS: {
rebase: true
}
}))
.use(layouts({
engine: 'jade',
directory: 'templates',
pattern: '**/*.html'
}))
.build(function (err) {
if(err) {
console.log(err)
}
console.log('Build Completed!')
})