@syntax I'd suggest using `prefers-color-scheme` in CSS to switch between dark and light mode. Use JS for a manual override.
I personally don't mind a bit of JS to enhance functionality, as long as you're not loading multiple MBs of it and doing lots of client side rendering
@aymm Good idea. I would only introduce JS into my site if it was better for the theme switch. I have no other reason to use it (my site is a simple static site for my writing etc.).
@syntax Any tips for a static site? I've been toying with the idea too, but Jenkyl seems waay overkill over what I need so my next thought was to write my own system.
@aymm Personally I'd recommend writing it from scratch. If you know HTML and CSS then it's easy enough. If not, it's also fairly easy to learn. And developing your own site is the perfect way to learn and practise. That's how I did it.
@syntax I was thinking along the lines of writing in Markdown and have it compiled to HTML on commit, probably with git hooks
@aymm I suppose whatever works best for you, especially only if it's going to be static content. It comes down to your preference.
Do a small test first, perhaps?
Or maybe try https://gohugo.io/
(Also what @torproject uses for their site.)
@syntax make sure that its LibreJS