You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="utf-8" /> |
|
<link rel="icon" href="%sveltekit.assets%/favicon.ico" /> |
|
<link rel="apple-touch-icon" href="%sveltekit.assets%/apple-touch-icon.png" /> |
|
<meta name="viewport" content="width=device-width, initial-scale=1" /> |
|
<script> |
|
// Apply theme immediately to prevent flash |
|
// Use localStorage as quick fallback, layout will load proper theme from IndexedDB |
|
(function() { |
|
const savedTheme = localStorage.getItem('theme'); |
|
if (savedTheme === 'gitrepublic-light') { |
|
document.documentElement.setAttribute('data-theme', 'light'); |
|
} else if (savedTheme === 'gitrepublic-black') { |
|
document.documentElement.setAttribute('data-theme', 'black'); |
|
} else { |
|
// Default to gitrepublic-dark (purple) |
|
document.documentElement.setAttribute('data-theme', 'dark'); |
|
} |
|
})(); |
|
</script> |
|
%sveltekit.head% |
|
</head> |
|
<body data-sveltekit-preload-data="hover"> |
|
<div style="display: contents">%sveltekit.body%</div> |
|
</body> |
|
</html>
|
|
|