]> danix's work - danix.xyz-2.git/commit
Fix theme toggle icon state sync on page navigation
authorDanilo M. <redacted>
Wed, 15 Apr 2026 19:46:40 +0000 (21:46 +0200)
committerDanilo M. <redacted>
Wed, 15 Apr 2026 19:46:40 +0000 (21:46 +0200)
commit68afb3e96391ca5dea8c46764cf6bd8a33c9ebd7
treec8e9d8433f693f51e9be9597532a546f9f78c3a0
parent9934e042c1e97765ac839f6c3f06d30f02b5d9d0
Fix theme toggle icon state sync on page navigation

The Alpine.js state was reading from localStorage instead of the actual
class on the html element, causing the icon to be out of sync with the
actual theme. Now we initialize the Alpine state by checking the current
html classList, which is set by the page-load script in baseof.html.

Co-Authored-By: Claude Haiku 4.5 <redacted>
themes/danix-xyz-hacker/layouts/partials/header.html