forked from SWIT2017/swit2017.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRules
More file actions
36 lines (30 loc) · 621 Bytes
/
Rules
File metadata and controls
36 lines (30 loc) · 621 Bytes
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
#!/usr/bin/env ruby
compile '/**/*.html' do
layout '/default.*'
end
compile '/**/*.md' do
filter :kramdown
layout '/default.*'
end
compile '/styles/main.scss' do
filter :sass, syntax: :scss, style: :compressed
filter :autoprefixer, browsers: [
'> 1%',
'last 2 versions',
'Firefox ESR',
'iOS >= 8',
]
write item.identifier.without_ext + '.css'
end
ignore '/**/*.scss'
route '/**/*.{html,md}' do
if item.identifier =~ '/index.*'
'/index.html'
else
item.identifier.without_ext + '/index.html'
end
end
compile '/**/*' do
write item.identifier.to_s
end
layout '/**/*', :erb