all repos — h3rald @ d88f7a3095b04e45259adfb0d2611bfa61d75b52

The sources of https://h3rald.com

Rules

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
#!/usr/bin/env ruby

"a-look-at-drupal.bbcode
boolean-search.bbcode
cakephp.bbcode
from-firefox-to-deer-park.bbcode
google-earth.bbcode
ie-lovers-guide-to-firefox.bbcode
ma.gnolia.bbcode
next-generation-dvds.bbcode
pagerank.bbcode
perfect-browser.bbcode
pre-review-of-ie7.bbcode
project-gutenberg.bbcode
project-windstone.bbcode
quick-overview-of-sqlite.bbcode
server-packages.bbcode
slax.bbcode
sqlyog5-review.bbcode
web-promotion.bbcode
what-is-ajax.bbcode
log-jan-2009.bluecloth
the-rails-way-review.bluecloth".split(/\n/).each do |s|
	f, ident, fil = s.match(/(.+)\.(.+)$/).to_a
	compile "/articles/#{ident}" do
		rep.filter fil.to_sym
		layout 'default'
	end
end

compile /archives/ do
	rep.filter :erb
	layout 'default'
end

compile /\/(home|projects|about)/ do
	rep.filter :erb
	rep.filter :redcloth
	layout 'default'
end
	
compile '*' do
	rep.filter :redcloth
	layout 'default'
end

route '*' do
  item.identifier + 'index.html'
end

layout '*', :erb