-
Notifications
You must be signed in to change notification settings - Fork 0
/
docpad.js
75 lines (68 loc) · 1.84 KB
/
docpad.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
64
65
66
67
68
69
70
71
72
73
74
75
// DocPad Configuration File
// http://docpad.org/docs/config
/**
* Esta era la configuración original en CoffeScript, pero lo dejé como JS
*/
// # Define the DocPad Configuration
// docpadConfig = {
// templateData:
// site:
// title: "Medula Diseño"
// getPreparedTitle: -> if @document.title then "#{@document.title} | #{@site.title}" else @site.title
// }
// #Export the DocPad Configuration
// module.exports = docpadConfig
// http://emmet.io/blog/docpad/
// https://github.com/lukekarrys/html5-boilerplate.docpad
var docpadConfig = {
templateData: {
site: {
title: 'Medula Diseño',
url: 'http://nuevo.medula.cl'
},
getPreparedTitle: function () {
if (this.document.title) {
return this.document.title + ' | ' + this.site.title;
} else {
return this.site.title;
}
},
getUrl: function (document) {
return this.site.url + (document.url || (typeof document.get === "function" ? document.get('url') : void 0));
}
},
collections: {
pages: function () {
return this.getCollection('html').findAllLive({
isPage: true,
},
[{
order: 1
}]);
}
},
plugins: {
sass: {
compass: false
}
},
environments: {
development: {
templateData: {
site: {
url: 'http://localhost:9778/'
}
},
plugins: {
sass: {
outputStyle: 'expanded'
}
}
},
outPath: '../out_dev'
},
localeCode: 'es',
outPath: '../out'
};
// Export the DocPad Configuration
module.exports = docpadConfig;