Fix <script> tags appearing before <html> tag by moving all <script> and
Some checks failed
Build And Deploy / build-and-deploy (push) Has been cancelled
Some checks failed
Build And Deploy / build-and-deploy (push) Has been cancelled
<style> tags into the <Fragment slot="head"> tag.
This commit is contained in:
parent
e80bbb9619
commit
738906446e
2 changed files with 125 additions and 120 deletions
|
|
@ -19,13 +19,16 @@
|
|||
<meta name="generator" content={Astro.generator} />
|
||||
<meta name="darkreader-lock" />
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
<script data-goatcounter="https://badblocks.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
|
||||
<slot name="head" />
|
||||
</head>
|
||||
<body>
|
||||
<script
|
||||
data-goatcounter="https://badblocks.goatcounter.com/count"
|
||||
async
|
||||
src="//gc.zgo.at/count.js"></script>
|
||||
<script>
|
||||
import "iconify-icon";
|
||||
</script>
|
||||
<slot name="head" />
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>badblocks.dev</h1>
|
||||
<nav>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,10 @@ const phoneValue = pickValue("phone");
|
|||
const msgValue = pickValue("msg");
|
||||
---
|
||||
|
||||
<script>
|
||||
<Layout>
|
||||
<title slot="head">Contact</title>
|
||||
<Fragment slot="head">
|
||||
<script>
|
||||
import Cap from "@cap.js/widget";
|
||||
import "iconify-icon";
|
||||
|
||||
|
|
@ -76,8 +79,8 @@ const msgValue = pickValue("msg");
|
|||
const { token } = await cap.solve();
|
||||
captchaInput.value = token;
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
</script>
|
||||
<style>
|
||||
form {
|
||||
display: grid;
|
||||
row-gap: var(--stack-large);
|
||||
|
|
@ -141,9 +144,8 @@ const msgValue = pickValue("msg");
|
|||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<Layout>
|
||||
<title slot="head">Contact</title>
|
||||
</style>
|
||||
</Fragment>
|
||||
<Fragment slot="content">
|
||||
<h2>Contact</h2>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue