durfdoen-2.0/Rules
rovherck 93c6f8e33e Merge pull request #11 from ZeusWPI/verenigingen-json
Add verenigingen.json generation
2020-05-06 17:33:31 +02:00

71 lines
1.1 KiB
Ruby

#!/usr/bin/env ruby
compile '/verenigingen/*.md' do
filter :kramdown
layout '/vereniging.*'
layout '/default.*'
write ext: 'html'
end
compile '/events/*.md' do
filter :kramdown
layout '/event.*'
layout '/default.*'
write ext: 'html'
end
compile '/konventen/*.md' do
filter :kramdown
layout '/konvent.*'
layout '/default.*'
write ext: 'html'
end
compile '/homepage.md' do
filter :kramdown
layout '/homepage.*'
layout '/default.*'
write '/index.html'
end
compile '/faq/*' do
filter :kramdown
end
compile '/faq.erb' do
filter :erb
layout '/default.*'
write '/faq/index.html'
end
compile '/verenigingen.md' do
filter :kramdown
layout '/verenigingen.*'
layout '/default.*'
write ext: 'html'
end
compile '/*.md' do
filter :kramdown
layout '/default.*'
write ext: 'html'
end
compile '/stylesheets/*.{sass,scss}' do
syntax = @item.identifier.ext.to_sym
filter :sass, syntax: syntax, style: :compact
write ext: 'css'
end
compile '/*.erb' do
filter :erb
write item.identifier.without_ext
end
layout '/**/*', :erb
# Catch-all
compile '/**/*' do
write item.identifier.to_s
end