-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.coffee
41 lines (33 loc) · 1.1 KB
/
app.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
axis = require 'axis'
rupture = require 'rupture'
autoprefixer = require 'autoprefixer-stylus'
js_pipeline = require 'js-pipeline'
css_pipeline = require 'css-pipeline'
records = require 'roots-records'
collections = require 'roots-collections'
excerpt = require 'html-excerpt'
moment = require 'moment'
monthNames = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]
module.exports =
ignores: ['readme.md', '**/layout.*', '**/_*', '.gitignore', 'ship.*conf']
locals:
postExcerpt: (html, length, ellipsis) ->
excerpt.text(html, length || 100, ellipsis || '...')
dateFormat: (date, format) ->
moment(date).format(format)
extensions: [
records(
characters: { file: "data/characters.json" }
site: { file: "data/site.json" }
),
collections(folder: 'posts', layout: 'post'),
js_pipeline(files: 'assets/js/*.coffee'),
css_pipeline(files: 'assets/css/*.styl')
]
stylus:
use: [axis(), rupture(), autoprefixer()]
sourcemap: true
'coffee-script':
sourcemap: true
jade:
pretty: true