Closed phseiff closed 4 years ago
Done - I only need to fix the redirection from page to page now.
Finally, it works... Exactly like it was intended in my description.
I still need to ensure that links on mastodon are tooted as "/e/"- instead of "/#"-links.
Done.
Currently, my essays use different hashes in the URL for different essays. It would be far more elegant to instead use something like /in/essay-name via
pushState
(called wheneverscroll_to()
discovers an essay to open orclose_essay()
is called) - typing links with "#" in the browser would still be supported, and just callset_location()
which callspushState
automatically (just like it currently does), and the subpages would be correctly indexed. EverypushState()
would also change the content of the meta-description tag based on a dict statically build based on the RSS feed, so different pages would have different meta descriptions. I would, however, have to host my website on my own using flask in a docker container, so every call tophseiff.com/in/essay_name
could be automatically redirected tophseiff.com/#essay-name
(make sure this also works without javascript!).