SvelteKit generating duplicate body tag #10087
Closed
SiNONiMiTY
started this conversation in
General
Replies: 1 comment
-
I think I found the solution, I just set the needed attributes via load() on page.ts |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have my app.html written like this
and my +page.svelte like this
I am doing this because currently, I am converting a pre-built HTML theme into SvelteKit and the theme works by adding dynamic attributes to the body tag for each custom page. Hence, I moved the body tag to specific routes. However, SvelteKit generates duplicated body tag when I do this approach
Is there any way that I can dynamically inject custom attributes to the body tag? Or how can I make the current method that I am doing work?
Beta Was this translation helpful? Give feedback.
All reactions