Skip to content

Commit 3a5c8c8

Browse files
committed
Redirect from "Hack" page to "Contributing" page
This avoids invalidating previously-existing links on the web.
1 parent 5071fd3 commit 3a5c8c8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pages/hack.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{ "title": "Contribute", "redirect": "/contribute/", "url": "/hack/", "template": "docs" }
2+
3+
This page has moved! You should be automatically redirected momentarily. [Click
4+
here](/contribute/) if not.

templates/docs.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
<meta name=description content="JSHint, a JavaScript Code Quality Tool">
99
<meta name=author content="Anton Kovalyov">
1010

11+
{{#if page.redirect}}
12+
<meta http-equiv=refresh content="0; url={{page.redirect}}">
13+
{{/if}}
14+
1115
{{#if site.dev}}
1216
<link rel=stylesheet href="/res/bootstrap.css">
1317
<link rel=stylesheet href="/res/docs.css">

0 commit comments

Comments
 (0)