Redirect from www. to fund. when needed.

This commit is contained in:
Tom Christie 2015-08-19 12:35:23 +01:00
parent 0dc9f285be
commit c958d5d447

View File

@ -1,3 +1,12 @@
<script>
// Imperfect, but easier to fit in with the existing docs build.
// Hyperlinks should point directly to the "fund." subdomain, but this'll
// handle the nav bar links without requiring any docs build changes for the moment.
if (window.location.hostname == "www.django-rest-framework.org") {
window.location.replace("https://fund.django-rest-framework.org/topics/funding/");
}
</script>
<style>
.chart {
background-color: #e3e3e3;