Website: allow users to change theme without duplicating content (#151)
This PR aims to resolve the chief complaint in #142 (dark mode being implemented by rendering an entirely duplicate dark mode copy of the sites pages).
This makes the following fixes:
- replaces the "two websites" model with a few lines of javascript that will preserve the theme-toggling functionality of the page. This also simplifies the build script somewhat.
- remove the default theme value for the `<html>` tag so the users browser preferences are respected on the first page load
- add a couple lines of JS to ensure that the theme button is set correctly on first load based the users theme preferences.
Co-authored-by: Adrian Edwards <17362949+MoralCode@users.noreply.github.com>
Co-authored-by: Caesar Schinas <caesar@caesarschinas.com>
Reviewed-on: https://codeberg.org/ForgeFed/ForgeFed/pulls/151
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: MoralCode <moralcode@noreply.codeberg.org>
Co-committed-by: MoralCode <moralcode@noreply.codeberg.org>