Hey folks, I continued hacking on my blog and came up with 2 things that might be interesting for others: 1. I wrote a simple namespace that you can include to make highlight.js in the browser obsolete. It performs syntax highlighting while building the blog: https://gist.github.com/JohnnyJayJay/861cd1db0a66adf83fdf8fffa37d8808 2. I made a comment integration that uses Mastodon as a comment host, meaning people can comment using any account on the fediverse. Feel free to take the code from it out of my template: https://codeberg.org/johnnyjayjay/cryogen-chota/src/branch/main/html/comments.html, https://codeberg.org/johnnyjayjay/cryogen-chota/src/branch/main/css/comments.css, https://codeberg.org/johnnyjayjay/cryogen-chota/src/branch/main/js/comments.js. Some styling probably needs to be adjusted if you're not using the same CSS library, but generally it should work anywhere.
Thank you for sharing!
Of course!
On the topic of sharing - https://github.com/holyjak/blog.jakubholy.net/commit/cc18a2c867234e5fce7b118abe6b8e475af5a28f I add custom search to my site with <https:pagefind.app/|pagefind.app> - a single binary that runs on my produced .html and produces .js files so the content can be searched from the browser. It also comes with a search UI, if you are as short on time as me. So far https://blog.jakubholy.net/search/.