Implement Whistle pattern for algorithmically reversible shortlinks
To make use of jvt.me being a short domain, it'd be quite nice to be able to share a url such as jvt.me/abc12
to link through to jamietanna.co.uk/2017/05/05/blah
, which gives me some niceness of having my own URL shortener which I can use for promoting posts. But at the same time, being it's all handled in Jekyll makes it much cleaner and without a DB to add extra complication.
Needs to make it possible to access these URIs - may as well be done on Jekyll's side, taking advantage of 1 to build redirects (do they want to have tracking on them? Maybe not as we'll see the hit once they land)
We'll also need some way of having ie two pages on the same day, following 2, so we'd want to encode the type of post and that it's nth per that day.
We should be able to build the "nth post' in to Generation time, by looping through all our posts at this point.
The shortcode type ie t can be edited in front matter, and will default to b for posts, p for projects.
Note: this isn't quite algorithmic as it requires routing through Jekyll. But so does Tantek's method, as that requires hAtom not requiring slugs.
Outstanding:
-
how to approach projects (if at all?), as they're not date based (unless we add them) -
will we hardcode the replaced FQDN?