-
Notifications
You must be signed in to change notification settings - Fork 441
/
docpad.coffee
59 lines (44 loc) · 1.34 KB
/
docpad.coffee
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
module.exports =
prompts: false,
# =================================
# Template Data
templateData:
# -----------------------------
# Language Definition
lang: require('./i18n')
currentLang: 'en'
# -----------------------------
# Site Information
site:
assets: 'https://browserdiet.com/assets'
getLang: ->
currentLang = @currentLang.toString()
return @lang[currentLang]
getTitle: ->
if @document.title
return @document.title
else
return @getLang().title
getSlogan: ->
if @document.slogan
return @document.slogan
else
return @getLang().slogan
getUrl: ->
if @document.pageurl
return @document.pageurl
else
return @getLang().url
getImageUrl: ->
if @document.imageurl
return @document.imageurl
else
return 'https://browserdiet.com/assets/img/fb-diet.jpg'
# =================================
# Environments
environments:
development:
templateData:
site:
url: 'http://localhost:9778'
assets: 'http://localhost:9778/assets'