media query theme (#139)

* feat: use css media query to derive theme

* fix: rename alt for toggle images

* feat: remove no-cache middleware
This commit is contained in:
httpjamesm 2024-06-20 00:18:22 -04:00 committed by GitHub
parent b0ae8a50b5
commit e409176642
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 17 additions and 77 deletions

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html data-theme="{{ .theme }}">
<html>
<head>
<title>AnonymousOverflow - Private frontend for StackOverflow</title>
@ -43,10 +43,9 @@
<div class="options">
<div class="icon">
<a href="/options/images">
<img src="/static/icons/image.svg" alt="Toggle theme" />
<img src="/static/icons/image.svg" alt="Toggle images" />
</a>
</div>
{{ template "themeSwitcher.html" .}}
</div>
<p class="footer">
Brought to you by