encodeURIComponent is both not safe enough, and overdone
I have tested with
URL constructor, and the results are
I turned my website into a template, mostly by git tricks
This was created by
- Move personalized information from every folders to some very specific folders
/media/ /post/**/*.md /theme.yml
- Separate to two repos, of theme, and of content
# Shared commands brew install git-filter-repo # https://github.com/newren/git-filter-repo/blob/main/INSTALL.md
Only flat file CMS and serverless functions are enough for my needs
This also obliviate the need to monitor your own database or entrust a third party to do it for you.
Still, you might need some functions you cannot rely on clients' web browser, such as adding search. Downloading indexes to client's machine is expensive and bad for SEO.