forked from seth/userprimary.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rules
103 lines (79 loc) · 1.23 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/usr/bin/env ruby
preprocess do
add_missing_info
create_tags_pages
create_month_archives
end
compile '/' do
filter :haml
layout 'home'
end
compile '/feed/' do
filter :erb
end
compile '/sitemap/' do
filter :erb
end
compile '/archives/' do
filter :haml
layout '/home/'
end
compile '/posts/' do
filter :haml
layout 'default'
end
compile '/posts/200*' do
filter :rdiscount
layout '/post/'
end
compile '/posts/*' do
filter :rdiscount
layout '/post/'
end
compile '/software/*' do
filter :rdiscount
layout 'default'
end
compile '/links/*' do
filter :erb
filter :rdiscount
layout 'default'
end
compile '/tags/' do
filter :haml
layout 'default'
end
compile '/tags/*' do
filter :haml
layout 'default'
end
compile '/style/style/' do
filter :sass
end
compile '/js/*' do
filter :erb
end
compile '/style/*' do
nil
end
route '/feed/' do
item.identifier.chop + ".atom"
end
route '/sitemap/' do
item.identifier.chop + ".xml"
end
route '/style/*' do
item.identifier.chop + ".css"
end
route '/js/*' do
item.identifier.chop + ".js"
end
layout '/tag/', :haml
layout '*', :haml, :ugly => true
compile '*' do
filter :erb
layout 'default'
end
route '*' do
item.identifier + 'index.html'
end