all repos — gomponents @ ac7471aac69fcb4e9cd460dae39b0183ec3d10df

HTML components in pure Go

Fix TailwindCSS CDN URL in example (#76)

The CSS style URLs from unpkg.com redirected to a different page, but the first request set a `Content-Type` header of `text/plain`. Using the direct URLs fixes this.

Fixes #75. Thanks to @gedw99 for reporting.
Markus Wüstenberg markus@maragu.dk
Tue, 11 May 2021 16:39:04 +0200
commit

ac7471aac69fcb4e9cd460dae39b0183ec3d10df

parent

1072ec9b70c6b2137d429214aafed2beb42d6a25

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M examples/tailwindcss/tailwindcss.goexamples/tailwindcss/tailwindcss.go
@@ -51,10 +51,10 @@ return c.HTML5(c.HTML5Props{ 		Title:    title,
 		Language: "en",
 		Head: []g.Node{
-			Link(Rel("stylesheet"), Href("https://unpkg.com/tailwindcss@^2.1.x/dist/base.min.css")),
-			Link(Rel("stylesheet"), Href("https://unpkg.com/tailwindcss@^2.1.x/dist/components.min.css")),
-			Link(Rel("stylesheet"), Href("https://unpkg.com/@tailwindcss/typography@0.4.x/dist/typography.min.css")),
-			Link(Rel("stylesheet"), Href("https://unpkg.com/tailwindcss@^2.1.x/dist/utilities.min.css")),
+			Link(Rel("stylesheet"), Href("https://unpkg.com/tailwindcss@2.1.2/dist/base.min.css")),
+			Link(Rel("stylesheet"), Href("https://unpkg.com/tailwindcss@2.1.2/dist/components.min.css")),
+			Link(Rel("stylesheet"), Href("https://unpkg.com/@tailwindcss/typography@0.4.0/dist/typography.min.css")),
+			Link(Rel("stylesheet"), Href("https://unpkg.com/tailwindcss@2.1.2/dist/utilities.min.css")),
 		},
 		Body: []g.Node{
 			Navbar(path, []PageLink{