forked from promcon/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRules
More file actions
51 lines (40 loc) · 1.11 KB
/
Rules
File metadata and controls
51 lines (40 loc) · 1.11 KB
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
#!/usr/bin/env ruby
passthrough '/README.md'
passthrough '/assets/bootstrap-3.3.1/**/*'
passthrough '/assets/favicons/**/*'
passthrough '/assets/font-awesome-4.6.1/**/*'
passthrough '/**/slides/*'
compile '/assets/*' do
unless item.binary?
filter :cache_buster, directory: '/assets/'
end
write CacheBuster.path(item)
end
compile '/**/*.md' do
filter :erb
filter :redcarpet, options: {filter_html: true, autolink: true, no_intraemphasis: true, fenced_code_blocks: true, gh_blockcode: true, tables: true}, renderer_options: {with_toc_data: true}
filter :bootstrappify
case
when item.identifier =~ '/**/speakers/*'
layout '/kind/speaker.html'
when item.identifier =~ '/**/talks/*'
layout '/kind/talk.html'
end
layout '/container.html'
layout '/default.html'
filter :cache_buster, directory: '/assets/'
end
compile '/**/*.json' do
write item.identifier
end
compile '/**/*.xml' do
write item.identifier
end
route '/**/*.md' do
if item.identifier =~ '/**/index.*'
item.identifier.without_ext + '.html'
else
item.identifier.without_ext + '/index.html'
end
end
layout '/**/*', :erb