dolphins7.skeleton/twenty-frontend/Rules

31 lines
713 B
Text
Raw Normal View History

2023-12-08 19:27:00 +01:00
#!/usr/bin/env ruby
compile("/layouts/*") { write(nil) }
compile '/**/*.html' do
layout '/default.*'
if item.identifier =~ '**/index.*'
write item.identifier.to_s
else
write item.identifier.without_ext + '/index.html'
end
end
# This is an example rule that matches Markdown (.md) files, and filters them
# using the :kramdown filter. It is commented out by default, because kramdown
# is not bundled with Nanoc or Ruby.
#
#compile '/**/*.md' do
# filter :kramdown
# layout '/default.*'
#
# if item.identifier =~ '**/index.*'
# write item.identifier.without_ext + '.html'
# else
# write item.identifier.without_ext + '/index.html'
# end
#end
passthrough "/**/*"
layout '/**/*', :erb