-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRules
46 lines (38 loc) · 827 Bytes
/
Rules
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
#!/usr/bin/env ruby
# Individual pages
compile '/projects/*.md' do
filter :kramdown
layout '/project.erb'
layout '/default.erb'
write item.identifier.without_ext + '/index.html'
end
compile '/team/*.md' do
filter :kramdown
layout '/team-member.erb'
layout '/default.erb'
write item.identifier.without_ext + '/index.html'
end
compile '/repos/*.md' do
layout '/repo.erb'
write nil
end
# Index pages
compile '/**/index.html.erb' do
filter :erb
layout '/default.erb'
write item.identifier.without_ext
end
compile '/index.md' do
filter :kramdown
layout '/index.erb'
layout '/default.erb'
write '/index.html'
end
# Default rules
compile '/**/*.md' do
filter :kramdown
layout '/default.erb'
write item.identifier.without_ext + '/index.html'
end
passthrough '/**/*'
layout '/**/*', :erb