2009-11-09 23:42:38 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
2009-11-22 06:11:43 +00:00
|
|
|
compile '/' do
|
2010-01-30 04:33:54 +00:00
|
|
|
layout 'home'
|
2009-11-22 06:11:43 +00:00
|
|
|
end
|
|
|
|
|
2010-02-04 02:38:35 +00:00
|
|
|
compile '*/json/' do
|
2010-01-30 05:50:07 +00:00
|
|
|
filter :erb
|
|
|
|
end
|
|
|
|
|
2010-02-04 02:38:35 +00:00
|
|
|
compile %r{/(technical|personal|)articles/(page/|)} do
|
2010-02-03 02:34:04 +00:00
|
|
|
filter :erb
|
|
|
|
layout 'articles'
|
|
|
|
end
|
2010-02-04 02:38:35 +00:00
|
|
|
|
|
|
|
compile %r(/\d{4}/*) do
|
|
|
|
filter :rdiscount
|
|
|
|
layout 'article'
|
|
|
|
layout 'default'
|
2010-02-03 02:34:04 +00:00
|
|
|
end
|
2009-11-23 02:34:17 +00:00
|
|
|
|
2009-11-09 23:42:38 +00:00
|
|
|
compile '*' do
|
2009-11-17 02:17:30 +00:00
|
|
|
filter :rdiscount
|
2009-11-09 23:42:38 +00:00
|
|
|
layout 'default'
|
|
|
|
end
|
|
|
|
|
2010-02-04 02:38:35 +00:00
|
|
|
route '*/json/' do
|
2010-01-30 05:50:07 +00:00
|
|
|
item.identifier + 'articles.json'
|
2009-11-23 02:34:17 +00:00
|
|
|
end
|
|
|
|
|
2009-11-09 23:42:38 +00:00
|
|
|
route '*' do
|
|
|
|
item.identifier + 'index.html'
|
|
|
|
end
|
|
|
|
|
|
|
|
layout '*', :erb
|