This is a plain HTML static URL shortener built with Jekyll. I give more details in this blog post.
Preparation
- Get your own domain name:
domain.tld
. - Fork the repo.
- Update
CNAME
with your domain name. - Update
_config.yaml
with your information. - Update
index.md
with your information. - Enable github pages for the repo.
Shorten URLs
- Let's say you want to shorten:
https://sub.other-domain.com/2021/01/article.html
. - Let's say you want it to be
domain.tld/article
. - Create an HTML file under
_URLs
named as the permalink: Herearticle.html
. - The content of this HTML page is:
---
layout: redirect
# Time in seconds before the redirect.
time: '0'
# The target of the redirect.
target: "https://sub.other-domain/2021/01/article.html"
---
- git add, commit, push.
- Visit
domain.tld/article
and you'll be redirected.
-
✅ Plain HTML URL shortener
-
✅ Lightweight
-
✅ Faaaaast
-
✅ Free to host on github.com
-
❎ No CSS, No JS
-
❎ No database
-
❎ No webserver
-
❎ No loadbalancing
-
❎ No analytics
-
❎ Blockchain and AI free