Created
May 9, 2015 20:22
-
-
Save josephabrahams/87c024291482b5e64a84 to your computer and use it in GitHub Desktop.
Redirect GitHub Pages URL to CNAME
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
{% if site.github %} | |
<script> | |
if (window.location.hostname.indexOf('{{ site.github.pages_hostname }}') !== -1) { | |
window.location = '{{ site.github.url }}'; | |
} | |
</script> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment