Skip to content

Commit

Permalink
fix: update cdn packages
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Oct 19, 2024
1 parent 3acf361 commit 83335c2
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions internal/components/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ func Page(props PageProps, children ...htmx.Node) htmx.Node {
},
Head: append([]htmx.Node{
htmx.Link(
htmx.Attribute("href", "https://unpkg.com/[email protected]/dist/tailwind.min.css"),
htmx.Attribute("href", "https://unpkg.com/[email protected]/dist/full.css"),
htmx.Attribute("rel", "stylesheet"),
htmx.Attribute("type", "text/css"),
htmx.CrossOrigin("anonymous"),
),
htmx.Link(
htmx.Attribute("href", "https://unpkg.com/[email protected]/dist/full.css"),
htmx.Attribute("rel", "stylesheet"),
htmx.Rel("stylesheet"),
htmx.Href("https://unpkg.com/[email protected]/dist/out.css"),
htmx.Attribute("type", "text/css"),
htmx.CrossOrigin("anonymous"),
),
Expand All @@ -39,9 +39,14 @@ func Page(props PageProps, children ...htmx.Node) htmx.Node {
htmx.CrossOrigin("anonymous"),
),
htmx.Script(
htmx.Attribute("src", "https://unpkg.com/[email protected]/dist/alpine.js"),
htmx.Src("https://unpkg.com/[email protected]"),
htmx.CrossOrigin("anonymous"),
htmx.Defer(),
),
htmx.Script(
htmx.Attribute("src", "https://unpkg.com/[email protected]/dist/cdn.min.js"),
htmx.CrossOrigin("anonymous"),
htmx.Attribute("defer", ""),
htmx.Defer(),
),
}, props.Head...),
},
Expand Down

0 comments on commit 83335c2

Please sign in to comment.