return content in asset

This commit is contained in:
MapleLeaf
2022-01-08 14:55:03 -06:00
parent b118d8a653
commit 7379402e80
3 changed files with 16 additions and 20 deletions

View File

@@ -32,17 +32,17 @@ export function Html({
/>
<ModuleAsset from="tailwindcss/tailwind.css">
{(url) => <link rel="stylesheet" href={url} />}
{(asset) => <link rel="stylesheet" href={asset.url} />}
</ModuleAsset>
<LocalFileAsset from={new URL("ui/prism-theme.css", import.meta.url)}>
{(url) => <link rel="stylesheet" href={url} />}
{(asset) => <link rel="stylesheet" href={asset.url} />}
</LocalFileAsset>
<title>{title}</title>
<ModuleAsset from="alpinejs/dist/cdn.js" as="alpine">
{(url) => <script defer src={url} />}
{(asset) => <script defer src={asset.url} />}
</ModuleAsset>
</head>
<body>{children}</body>