diff options
author | Markus Wüstenberg | 2021-05-11 16:39:04 +0200 |
---|---|---|
committer | GitHub | 2021-05-11 16:39:04 +0200 |
commit | ac7471aac69fcb4e9cd460dae39b0183ec3d10df (patch) | |
tree | 1fcfcc83b18dbb5661b6a2838fc179d04ebf4a7e /examples | |
parent | 1072ec9b70c6b2137d429214aafed2beb42d6a25 (diff) | |
download | gomponents-ac7471aac69fcb4e9cd460dae39b0183ec3d10df.tar.lz gomponents-ac7471aac69fcb4e9cd460dae39b0183ec3d10df.tar.zst gomponents-ac7471aac69fcb4e9cd460dae39b0183ec3d10df.zip |
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.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/tailwindcss/tailwindcss.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/tailwindcss/tailwindcss.go b/examples/tailwindcss/tailwindcss.go index 5f179c8..2af2d33 100644 --- a/examples/tailwindcss/tailwindcss.go +++ b/examples/tailwindcss/tailwindcss.go @@ -51,10 +51,10 @@ func Page(title, path string, body g.Node) g.Node { 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{ |