41 lines
665 B
Ruby
41 lines
665 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
compile '/**/*.erb' do
|
|
filter :erb
|
|
layout '/default.erb'
|
|
|
|
filter :relativize_paths, type: :html
|
|
end
|
|
|
|
compile '/**/*.coffee' do
|
|
filter :coffeescript
|
|
write "#{item.identifier.without_ext}.js"
|
|
end
|
|
|
|
compile '/**/*.scss' do
|
|
filter :sass, syntax: :scss
|
|
write "#{item.identifier.without_ext}.css"
|
|
end
|
|
|
|
# Markdown
|
|
compile '/**/*.md' do
|
|
filter :kramdown
|
|
|
|
layout '/eventpost.erb'
|
|
filter :erb
|
|
|
|
layout '/default.erb'
|
|
filter :erb
|
|
|
|
filter :relativize_paths, type: :html
|
|
end
|
|
|
|
route '/**/*.{erb, html,md}' do
|
|
"#{item.identifier.without_ext}/index.html"
|
|
end
|
|
|
|
compile '/**/*' do
|
|
write item.identifier.to_s
|
|
end
|
|
|
|
layout '/**/*', :erb
|