feat: nebula assets served from CDN

This commit is contained in:
Prad Nukala
2024-10-09 14:15:05 -04:00
parent 5df9d4a3e5
commit 58a02be5cf
9 changed files with 54 additions and 65 deletions
+4 -4
View File
@@ -34,6 +34,8 @@ templ Layout(title string, remote bool) {
<html lang="en">
<head>
@cdn.Styles()
@cdn.Htmx()
@cdn.Alpine()
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
@@ -47,8 +49,6 @@ templ Layout(title string, remote bool) {
<main class="flex-row items-center justify-center mx-auto w-fit max-w-screen-sm gap-y-3">
{ children... }
</main>
@cdn.Alpine()
@cdn.Htmx()
</body>
</html>
}
@@ -58,6 +58,8 @@ templ LayoutNoBody(title string, remote bool) {
<html lang="en">
<head>
@cdn.Styles()
@cdn.Htmx()
@cdn.Alpine()
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
@@ -72,8 +74,6 @@ templ LayoutNoBody(title string, remote bool) {
<div class="flex flex-col min-h-screen overflow-hidden supports-[overflow:clip]:overflow-clip">
{ children... }
</div>
@cdn.Alpine()
@cdn.Htmx()
</body>
</main>
</html>