Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect v2 #886

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
---