fix(theme): ensure theme.js loaded before header.js

- Add theme.js script include to header template
- Fixes theme selector not working on pages using Header component
- Ensures applyTheme() is defined before changeThemeTo() calls it
This commit is contained in:
2026-02-24 10:25:10 -05:00
parent 7a420ef975
commit 65b737ec2c
+1
View File
@@ -163,5 +163,6 @@ templ Header(user User, currentPath string) {
</div>
</div>
</nav>
<script src="/static/theme.js"></script>
<script src="/static/header.js"></script>
}