Skip to content

Commit

Permalink
Merge pull request #11 from ICESAT-2HackWeek/redirect
Browse files Browse the repository at this point in the history
Index - Update redirect logic
  • Loading branch information
jomey authored May 6, 2024
2 parents fb7a7b3 + cd59165 commit 4fee6dd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions {{ cookiecutter.repo_directory }}/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
<html lang="en">

<head>
{%- if 'redirect' in cookiecutter %}
<meta http-equiv="refresh" content="0; {{cookiecutter.redirect.url}}">
<script>
window.location.replace("{{cookiecutter.redirect.url}}");
</script>
{% endif %}
<title>{{ cookiecutter.name }}</title>

<!-- Meta -->
Expand All @@ -28,11 +34,6 @@
background-size: cover;
}
</style>
{%- if 'redirect' in cookiecutter %}
<script>
window.location.replace("{{cookiecutter.redirect.url}}");
</script>
{% endif %}
</head>

<body>
Expand Down

0 comments on commit 4fee6dd

Please sign in to comment.