phseiff / phseiff.github.io

The source code repo for my personal website

Home Page:https://phseiff.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Diversify URL schemes

phseiff opened this issue · comments

I want to overhault the way hashtags in the URL are processed by the website.

Currently, the URL phseiff.com/#foo leads to the essay foo.
And for every essay foo, a file is hosted under phseiff.com/e/foo and phseiff.com/essays/foo that redirects to phseiff.com/#foo.

I want the behavior to be like the following, instead:

  • The URL phseiff.com/#foo leads to the essay foo.
  • The URL phseiff.com/#bar/foo also leads to the essay foo, no matter what bar is.
  • If foo is not a valid essay and scroll location, the hashtag is cleared (rather than just failing and leaving the hashtag as-is).

I could then easily add a list of essay-dirs to the builder (like e, essays, about), and for every essay-dir bar and every essay foo, a file is hosted under phseiff.com/bar/foo that redirects to phseiff.com/#bar/foo.