blob: 12e8b2a78f9be0cd1cd18c0def6372661d50044b (
plain)
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
|
#!/usr/bin/env ruby
compile '/**/*.html' do
filter :erb
layout '/blog.html'
end
compile '/**/*.rst' do
filter :rst
if item.identifier =~ /index.rst/
layout '/blog.html'
elsif item.identifier =~ /[0-9]{4}-[0-1][0-9]-[0-9]{1,2}\.[0-9]+\.rst/
layout '/blog_article.html'
else
layout '/about.html'
end
end
route '/**/*.{html,md,rst}' do
if item.identifier =~ '/index.*'
'/index.html'
else
item.identifier.without_ext + '.html'
end
end
compile '/**/*' do
write item.identifier.to_s
end
layout '/**/*', :erb
|