-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
37 lines (37 loc) · 1.23 KB
/
Copy pathindex.html
File metadata and controls
37 lines (37 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
layout: null
---
{% assign content_root = site.content_root | default: 'public' %}
{% assign root_url = '/' | append: content_root | append: '/' | replace: '//', '/' | relative_url %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="robots" content="noindex, nofollow">
<title>Redirecting...</title>
<!-- Fallback for legacy browsers -->
<meta http-equiv="refresh" content="0; url={{ root_url }}">
<script>
// Instantly replace the root URL in browser history so the "Back" button still works normally
window.location.replace({{ root_url | jsonify }});
</script>
<style>
body {
font-family: ui-sans-serif, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: #f5f6f8;
color: #666666;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
@media (prefers-color-scheme: dark) {
body { background-color: #121212; color: #999999; }
}
</style>
</head>
<body>
<p>Redirecting to {{ root_url }}... <a href="{{ root_url }}" style="color: #0366d6;">Click here</a></p>
</body>
</html>