Fix script and style tags being outside the fragment (and thus rendering
All checks were successful
Build And Deploy / build-and-deploy (push) Successful in 1m23s

before <html> tag)
This commit is contained in:
badblocks 2026-02-27 10:44:17 -08:00
parent e80bbb9619
commit 89c369d1cc
No known key found for this signature in database
2 changed files with 125 additions and 120 deletions

View file

@ -19,13 +19,16 @@
<meta name="generator" content={Astro.generator} /> <meta name="generator" content={Astro.generator} />
<meta name="darkreader-lock" /> <meta name="darkreader-lock" />
<link rel="sitemap" href="/sitemap-index.xml" /> <link rel="sitemap" href="/sitemap-index.xml" />
<script data-goatcounter="https://badblocks.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script> <script
<slot name="head" /> data-goatcounter="https://badblocks.goatcounter.com/count"
</head> async
<body> src="//gc.zgo.at/count.js"></script>
<script> <script>
import "iconify-icon"; import "iconify-icon";
</script> </script>
<slot name="head" />
</head>
<body>
<header> <header>
<h1>badblocks.dev</h1> <h1>badblocks.dev</h1>
<nav> <nav>

View file

@ -26,6 +26,9 @@ const phoneValue = pickValue("phone");
const msgValue = pickValue("msg"); const msgValue = pickValue("msg");
--- ---
<Layout>
<title slot="head">Contact</title>
<Fragment slot="head">
<script> <script>
import Cap from "@cap.js/widget"; import Cap from "@cap.js/widget";
import "iconify-icon"; import "iconify-icon";
@ -142,8 +145,7 @@ const msgValue = pickValue("msg");
} }
} }
</style> </style>
<Layout> </Fragment>
<title slot="head">Contact</title>
<Fragment slot="content"> <Fragment slot="content">
<h2>Contact</h2> <h2>Contact</h2>
{ {