Skip to content

Build your personal knowledge base with Trilium Notes

fix(website): script errors due to double body

Elian Doran330932added9
diff --git a/apps/website/src/app.html b/apps/website/src/app.html
index 7539873b87..fee9ee80f9 100644
--- a/apps/website/src/app.html
+++ b/apps/website/src/app.html
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
- <body data-sveltekit-preload-data="hover">
+ <body data-sveltekit-preload-data="hover" class="dark:bg-black dark:text-white">
%sveltekit.body%
</body>
</html>
diff --git a/apps/website/src/routes/+layout.svelte b/apps/website/src/routes/+layout.svelte
index 18fe9f546e..9cefd17366 100644
--- a/apps/website/src/routes/+layout.svelte
+++ b/apps/website/src/routes/+layout.svelte
@@ -5,8 +5,6 @@
let { children } = $props();
</script>
-<body class="dark:bg-black dark:text-white">
-
<Header />
<main>
@@ -16,5 +14,3 @@
<footer class="container max-w-screen mx-0 w-full bg-white dark:bg-gray-900 mt-2 py-6 text-sm text-center text-gray-500">
&copy; 2024-2025 <a href="https://github.com/eliandoran" class="text-blue-500 hover:underline">Elian Doran</a> and the <a href="https://github.com/TriliumNext/Notes/graphs/contributors" class="text-blue-500 hover:underline">team</a>. <br/> &copy; 2017-2024 <a href="https://github.com/zadam" class="text-blue-500 hover:underline">Adam Zivner</a>.
</footer>
-
-</body>
\ No newline at end of file