Skip to content

Instantly share code, notes, and snippets.

@AprilSylph
Created April 6, 2019 01:53
Show Gist options
  • Save AprilSylph/c5cb1b69f2680ab6aa6c033055523ede to your computer and use it in GitHub Desktop.
Save AprilSylph/c5cb1b69f2680ab6aa6c033055523ede to your computer and use it in GitHub Desktop.
simulate "Redirect"-type page layout on Tumblr
<!DOCTYPE html>
<html>
<head>
<title>Redirecting...</title>
<script>
if (location.pathname !== "/customize_preview_receiver.html") {
location.replace("{TARGETURL}");
}
</script>
<meta name="description" content="This is a redirect to {TARGETURL}."/>
<style>
body {
font-family: Helvetica, Arial, sans-serif;
text-align: center;
margin-top: 25%;
}
p {
margin: 1em;
}
</style>
</head>
<body>
<p>Find+Replace &#0123;TARGETURL&#0125; to redirect to the URL of your choice. You are currently redirecting to: <a href="{TARGETURL}">{TARGETURL}</a></p>
<p>If you're viewing this from outside the Edit Theme page, turn your scripts back on and reload or just click the link, thanks!</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment