SvelteKit generating duplicate body tag #10088
              
  
  Closed
              
          
                  
                    
                      SiNONiMiTY
                    
                  
                
                  started this conversation in
                General
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
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