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({
/>
))}
<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 ? (
<div>
<script
......@@ -213,6 +207,12 @@ export default function ServerHTML({
/>
</div>
) : null}
</head>
<body>
<div id="content" dangerouslySetInnerHTML={{ __html: body }} />
{assets.script.map((href, idx) => (
<script key={idx} src={href} />
))}
</body>
</html>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment