mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 05:30:54 +03:00
parent
6c68142cc1
commit
33b46d8a41
2 changed files with 3 additions and 4 deletions
|
@ -36,8 +36,8 @@ func TestTailwindV4Basic(t *testing.T) {
|
||||||
"url": "https://github.com/bep/hugo-starter-tailwind-basic.git"
|
"url": "https://github.com/bep/hugo-starter-tailwind-basic.git"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/cli": "^4.0.0-alpha.26",
|
"@tailwindcss/cli": "^4.0.1",
|
||||||
"tailwindcss": "^4.0.0-alpha.26"
|
"tailwindcss": "^4.0.1"
|
||||||
},
|
},
|
||||||
"name": "hugo-starter-tailwind-basic",
|
"name": "hugo-starter-tailwind-basic",
|
||||||
"version": "0.1.0"
|
"version": "0.1.0"
|
||||||
|
@ -68,5 +68,5 @@ CSS: {{ $css.Content | safeCSS }}|
|
||||||
LogLevel: logg.LevelInfo,
|
LogLevel: logg.LevelInfo,
|
||||||
}).Build()
|
}).Build()
|
||||||
|
|
||||||
b.AssertFileContent("public/index.html", "/*! tailwindcss v4.0.0")
|
b.AssertFileContent("public/index.html", "/*! tailwindcss v4.")
|
||||||
}
|
}
|
||||||
|
|
|
@ -388,7 +388,6 @@ func (r *resourceAdapter) getImageOps() images.ImageResourceOps {
|
||||||
if r.MediaType().SubType == "svg" {
|
if r.MediaType().SubType == "svg" {
|
||||||
panic("this method is only available for raster images. To determine if an image is SVG, you can do {{ if eq .MediaType.SubType \"svg\" }}{{ end }}")
|
panic("this method is only available for raster images. To determine if an image is SVG, you can do {{ if eq .MediaType.SubType \"svg\" }}{{ end }}")
|
||||||
}
|
}
|
||||||
fmt.Println(r.MediaType().SubType)
|
|
||||||
panic("this method is only available for image resources")
|
panic("this method is only available for image resources")
|
||||||
}
|
}
|
||||||
r.init(false, false)
|
r.init(false, false)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue