zeus.ugent.be/Rules

27 lines
378 B
Plaintext
Raw Normal View History

2016-06-09 12:27:23 +00:00
#!/usr/bin/env ruby
2016-06-09 13:04:10 +00:00
# HTML
2016-06-09 12:27:23 +00:00
compile '/**/*.html' do
layout '/default.*'
end
2016-06-09 13:04:10 +00:00
# Markdown
compile '/**/*.md' do
filter :kramdown
layout '/default.*'
end
2016-06-09 12:27:23 +00:00
route '/**/*.{html,md}' do
if item.identifier =~ '/index.*'
'/index.html'
else
2016-06-09 13:34:03 +00:00
"#{item.identifier.without_ext}/index.html"
2016-06-09 12:27:23 +00:00
end
end
compile '/**/*' do
write item.identifier.to_s
end
layout '/**/*', :erb