Added redirect from github.io if GitHub-canonical URL is invoked

This commit is contained in:
Thomas Jensen
2014-12-25 15:31:54 +01:00
parent 95cd377c99
commit ab02a16bee

View File

@@ -15,6 +15,12 @@
<meta name="description" content="{{ page.sedesc }}" />
<meta name="keywords" content="ascii, ascii art, filter, command line, box, boxes, box drawing" />
{% endif %}
<script type="text/javascript">
if (window.location.hostname == "ascii-boxes.github.io") {
window.location = window.location.protocol + "//boxes.thomasjensen.com"
+ window.location.pathname + window.location.hash;
}
</script>
<script src="{{ site.baseurl }}/js/jquery.min.js"></script>
<script src="{{ site.baseurl }}/js/bootstrap.min.js"></script>
<link href="{{ site.baseurl }}/css/bootstrap.min.css" rel="stylesheet">