Created
March 2, 2012 17:56
-
-
Save jelder/1960042 to your computer and use it in GitHub Desktop.
A 404 page for Octopress blogs which have been migrated from Blogger and may have broken inbound links (.html -> /)
This file contains hidden or 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
--- | |
layout: page | |
title: "Not Found" | |
sharing: false | |
footer: false | |
--- | |
Sorry, that page doesn't exist. <span id="suggestion"/> | |
<script type="text/javascript"> | |
//<![CDATA[ | |
if (window.location.pathname.indexOf(".html") > 0) { | |
text = "The structure of this site changed recently. Could you be looking for <a></a> instead?" | |
guess = window.location.pathname.replace(/\.html/,"/") | |
$("#suggestion").html(text); | |
$("#suggestion a").html(guess).attr("href", guess); | |
} | |
//]]> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment