Skip to content

Commit

Permalink
Redirect v2 (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob authored Feb 6, 2025
1 parent 6084e41 commit 5f4a1f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 6 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% if page.redirect -%}
<meta http-equiv="refresh" content="0; url={{ page.redirect }}">
<script type="text/javascript">
window.location.href = "{{ page.redirect }}"
</script>
{%- endif -%}
<title>{{ site.title }} {% if page.title %} - {{ page.title }}{% endif %}</title>
<!-- Meta -->
<meta charset="utf-8">
Expand Down
6 changes: 1 addition & 5 deletions _layouts/redirect.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
---
layout: page
---
<meta http-equiv="refresh" content="0; url={{ page.target }}">
<script type="text/javascript">
window.location.href = "{{ page.target }}"
</script>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
If you are not redirected automatically, follow this <a href='{{ page.target }}'>link</a>.
If you are not redirected automatically, follow this <a href='{{ page.redirect }}'>link</a>.
2 changes: 1 addition & 1 deletion pages/survey.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
title: Survey 2025
layout: redirect
permalink: /survey/
target: https://docs.google.com/forms/d/e/1FAIpQLSdd52Au_R-vGpiyDZ_CRl3RrIFTeDmmEWY46fIh2frkwGmXMA/viewform?usp=dialog
redirect: https://docs.google.com/forms/d/e/1FAIpQLSdd52Au_R-vGpiyDZ_CRl3RrIFTeDmmEWY46fIh2frkwGmXMA/viewform?usp=dialog
---

0 comments on commit 5f4a1f9

Please sign in to comment.