Skip to content

Commit

Permalink
Merge pull request #5 from ICESAT-2HackWeek/jomey/redirect
Browse files Browse the repository at this point in the history
More elegant redirect
  • Loading branch information
jomey authored Jun 8, 2023
2 parents 4e28d63 + 513da6c commit 1b4b146
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 57 deletions.
23 changes: 0 additions & 23 deletions .templaterc.json

This file was deleted.

29 changes: 0 additions & 29 deletions CITATION.cff

This file was deleted.

1 change: 0 additions & 1 deletion cookiecutter.json

This file was deleted.

4 changes: 3 additions & 1 deletion cookiecutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ about: Hackweeks are participant-driven events that strive to create welcoming s
apply:
url: '#'
title: Application coming soon
hackweek_mission: https://uwhackweek.github.io/hackweeks-as-a-service/mission.html
hackweek_mission: https://escience.washington.edu/using-data-science/hackweeks
redirect:
url: https://icesat-2-2023.hackweek.io
banner:
title: IceSat-2 Hackweek
description: An in person, collaborative learning event.
Expand Down
3 changes: 0 additions & 3 deletions {{ cookiecutter.repo_directory }}/assets/js/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
"use strict";

/* ===== Redirect to the current event ===== */
window.location.replace("https://icesat-2-2023.hackweek.io");

/* ======= Header animation ======= */
const header = document.getElementById('header');

Expand Down
5 changes: 5 additions & 0 deletions {{ cookiecutter.repo_directory }}/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
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 1b4b146

Please sign in to comment.