Can I use different documents (body, title, html) structures for different pages #13160
Unanswered
mikemontilla
asked this question in
Help
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 want to use Next.js to generate all of the pages of my web site statically. However I need to modify the structure of my document depending on the page that I am working. I want, for example, to load the Facebook SDK (according to Facebook must be located after the opening
<body>
tag) using one language in one page and other language in the other page. I also want to modify thelang
prop of<html>
depending on the page. If I modify the _document.js I have the same document for all my pages. Can I use different document configurations for different pages maintaining them static?Beta Was this translation helpful? Give feedback.
All reactions