Skip to content
Snippets Groups Projects
Commit a426d3d8 authored by justinw's avatar justinw
Browse files

move scripts to be inside <head />

parent e2ec149b
No related branches found
No related tags found
No related merge requests found
...@@ -173,12 +173,6 @@ export default function ServerHTML({ ...@@ -173,12 +173,6 @@ export default function ServerHTML({
/> />
))} ))}
<title>{page_title}</title> <title>{page_title}</title>
</head>
<body>
<div id="content" dangerouslySetInnerHTML={{ __html: body }} />
{assets.script.map((href, idx) => (
<script key={idx} src={href} />
))}
{config.google_ad_client ? ( {config.google_ad_client ? (
<div> <div>
<script <script
...@@ -213,6 +207,12 @@ export default function ServerHTML({ ...@@ -213,6 +207,12 @@ export default function ServerHTML({
/> />
</div> </div>
) : null} ) : null}
</head>
<body>
<div id="content" dangerouslySetInnerHTML={{ __html: body }} />
{assets.script.map((href, idx) => (
<script key={idx} src={href} />
))}
</body> </body>
</html> </html>
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment