Repository navigation
Commit 032d7e8
committed
templates: Apply saved theme in base template
Read the saved theme from localStorage on page load and set the
data-theme attribute early to avoid a flash of unstyled content.
Signed-off-by: Andrea Cervesato <andrea.cervesato@mailbox.org>
Assisted-by: Gemini 3.8 Flash1 parent 3e9fd91 commit 032d7e8
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
5 | 15 | | |
6 | 16 | | |
7 | 17 | | |
| |||
0 commit comments