Fix Tailwind CDN: add is:inline to prevent Astro module bundling

This commit is contained in:
Jarvis Prime
2026-03-23 18:24:27 +00:00
parent cf74e597ce
commit 0f04d5374d

View File

@@ -18,7 +18,8 @@ const currentPath = Astro.url.pathname;
<meta name="robots" content="All" />
<title>{title}</title>
<link rel="icon" href="/favicon.ico" />
<script>
<script is:inline src="https://cdn.tailwindcss.com"></script>
<script is:inline>
tailwind.config = {
theme: {
extend: {
@@ -31,7 +32,6 @@ const currentPath = Astro.url.pathname;
}
}
</script>
<script src="https://cdn.tailwindcss.com"></script>
<style>
/* Dropdown menu */
.nav-dropdown:hover .dropdown-menu { display: block; }