Skip to content

Commit

Permalink
Index - Update redirect logic
Browse files Browse the repository at this point in the history
Move the redirect to an event specific page right at the top and add the HTML-5 way. Probably overkill, but doesn't hurt.
  • Loading branch information
jomey committed May 2, 2024
1 parent fb7a7b3 commit cd59165
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 cd59165

Please sign in to comment.