Created
November 4, 2011 23:46
-
-
Save stevenklise/1340812 to your computer and use it in GitHub Desktop.
URL rewrites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rack/jekyll" # Jekyll on Rack | |
require "rack/rewrite" # Rewrites on Rack | |
use Rack::Rewrite do | |
rewrite '/feed/', '/feed/index.xml' # target url, current url | |
end | |
run Rack::Jekyll.new # run the Jekyll app on Rack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'rubygems' | |
gem 'rack/jekyll' | |
gem 'rack/rewrite' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment