Created
May 19, 2013 13:36
-
-
Save kenglxn/5607639 to your computer and use it in GitHub Desktop.
wordpress to jekyll permalink preservation hack: taken from https://github.com/kenglxn/kenglxn.github.com/blob/master/_layouts/default.html
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
(function() { | |
var qry = /^\?p=(\d+)/; | |
var oldies = { | |
'497': '/2012/08/14/using-sublime-text-2-as-git-commit-message-editor', | |
'17': '/2009/11/01/seam-maven-refimpl' | |
}; | |
if (window.location.search && window.location.search.match(qry)) { | |
var newbie = oldies[qry.exec(window.location.search)[1]]; | |
if(newbie) { | |
window.location = newbie; | |
} | |
} | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment