Skip to content

Commit

Permalink
Merge pull request #8 from uwhackweek/redirect
Browse files Browse the repository at this point in the history
Add option to redirect the page to a different domain.
  • Loading branch information
jomey authored May 6, 2024
2 parents 0e23cb7 + 999bcbe commit 1787546
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cookiecutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ about:
new_window: True
applicant_info: UW Hackweek 2023 will take place in October 2023 (virtual or in-person
TBD). Applications have not yet opened, but should be anticipated in September 2023.
# Redirect the site to a different domain.
#redirect:
# url: https://go.somehwere.else
team:
!include team.yaml
schedule:
Expand Down
6 changes: 6 additions & 0 deletions {{ cookiecutter.repo_directory }}/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<head>
<title>{{ cookiecutter.name }}</title>

{%- if 'redirect' in cookiecutter %}
<meta http-equiv="refresh" content="0; {{cookiecutter.redirect.url}}">
<script>
window.location.replace("{{cookiecutter.redirect.url}}");
</script>
{% endif %}
<!-- Meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand Down

0 comments on commit 1787546

Please sign in to comment.