-
To add a new short link, add an issue with the title being the link you want to shorten (including the
http(s)://
) to https://github.com/SamirPaulb/url/issues. -
The newly created short url can be accessed via
samirpaul.in/url/{issue_number}
- Fork the repo before cloning your fork.
- Set up GitHub pages for your forked repo.
- If you are using your own domain:
- Set your domain up for GitHub pages.
- Change the URL in
CNAME
file to your domain.
- If you are using GitHub page's default domain i.e. Something like
https://<username>.github.io/<repo-name>/
- Delete the
CNAME
file. - Change
var PATH_SEGMENTS_TO_SKIP = 0;
at the top of404.html
tovar PATH_SEGMENTS_TO_SKIP = 1;
.- This is as GitHub domains have an additional path segment (the repo name) after the host name.
- Delete the
- Create a new repo as a database. (Or you could use your forked repo)
- Update
var GITHUB_ISSUES_LINK = "<your-github-issues-link>";
at the top of404.html
accordingly afterwards.- Format for
GITHUB_ISSUES_LINK
:https://api.github.com/repos/{owner}/{repo}/issues/
- Remember the trailing
/
!
- Format for
- Update
- Push your changes to your forked repo, and your low cost and cool as heck URL shortener will be ready for use!