renewedtab_website/index.html

41 lines
1.3 KiB
HTML
Raw Normal View History

2021-09-21 10:00:26 -07:00
---
---
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
2021-09-26 11:09:05 -07:00
<title>Renewed Tab</title>
2021-09-21 10:00:26 -07:00
<script>
let locale = "en";
try {
const userLanguages = typeof navigator.languages == "object"
? navigator.languages : [ navigator.language ];
const locales = {{ site.data.languages | map: "code" | jsonify }};
2021-09-21 11:32:25 -07:00
locale = userLanguages.find(x => locales.includes(x)) ?? "en";
2021-09-21 10:00:26 -07:00
} catch (e) {
console.error(e);
}
2021-09-21 10:04:21 -07:00
const url = new URL(`https://renewedtab.com/${locale}/`);
2021-09-21 10:00:26 -07:00
const urlParams = new URLSearchParams(window.location.search);
for (let key of urlParams.keys()) {
url.searchParams.set(key, urlParams.get(key));
}
window.location = url.toString();
</script>
<link rel="canonical" href="https://renewedtab.com/en/">
<meta http-equiv="refresh" content="0; url=https://renewedtab.com/en/">
2021-09-26 11:09:05 -07:00
<link rel="icon" href="/static/icon.svg">
<meta name="og:title" content="Renewed Tab" />
<meta name="og:description" content="{{ site.description }}" />
<meta name="description" content="{{ site.description }}" />
<meta name="og:url" content="{{ '/' | absolute_url }}" />
<meta name="og:image" content="{{ '/static/images/gallery/screenshot.png' | absolute_url }}" />
2021-09-21 10:00:26 -07:00
</head>
<body>
<h1>Redirecting&hellip;</h1>
<a href="https://renewedtab.com/en/">Click here if you are not redirected.</a>
</body>
</html>