Skip to content

Commit aa2adb9

Browse files
committed
Redirect /snapshots to /git-snapshots
The snapshots are hosted in the GitHub Pages of the https://github.com/git-for-windows/git-snapshots/ repository. That repository name is reasonably distinctive for a repository, but it is reflected in the URL https://gitforwindows.org/git-snapshots/, making it a tad tedious to write out the first time. Let's redirect the URLs `/snaps` and `/snapshots` for convenience. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 3a3a303 commit aa2adb9

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

content/snaps.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
type: redirect
3+
redirect_to: https://gitforwindows.org/git-snapshots/
4+
---

content/snapshots.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
type: redirect
3+
redirect_to: https://gitforwindows.org/git-snapshots/
4+
---

layouts/redirect/single.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Redirecting&hellip; Git for Windows snapshots</title>
6+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7+
<link rel="stylesheet" href="GitForWindows.css" />
8+
<link rel="shortcut icon" href="{{ relURL "favicon.ico" }}" />
9+
<link rel="canonical" href="{{ .Params.redirect_to }}" />
10+
<meta http-equiv="refresh" content="0; url={{ .Params.redirect_to }}" />
11+
</head>
12+
<body>
13+
<script>window.location.replace(document.querySelector("link[rel='canonical']").href + window.location.search + window.location.hash)</script>
14+
<h1>Redirecting&hellip;</h1>
15+
<a href="{{ .Params.redirect_to }}">Click here if you are not redirected.</a>
16+
</body>
17+
</html>

0 commit comments

Comments
 (0)