-
Notifications
You must be signed in to change notification settings - Fork 4
Adding Redirects
This is also easy. /data/redirects.js
All these do is, after page load, redirect users to another link. Yes, you can add joke ones. As of this writing I haven't.
By using the Github Pages 404.html, I have any 404'd page redirect to sgdc.dev/#what they typed after the slash. This means all redirects that don't somehow line up perfectly with an existing file can be used as expected. Effectively, the site is a shortlinker for things like Game Jams.
just add another line with {name: "what they type after the /", link: "the real hyperlink to go to"},
ex: {name: "test", link: "http://google.com"}, // sgdc.dev/test would then redirect to Google
The comma at the end is important, yes.
Nothing's stopping you from adding multiple redirects that have the link with different names, so if you want both #gjx and #gamejamx, just put two entries in. Sorry I didn't make name an array.