aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndreas Deininger <[email protected]>2024-08-30 22:15:29 +0200
committerBjørn Erik Pedersen <[email protected]>2024-08-30 22:26:29 +0200
commit8fb933550f5269e2f21ec09ab66801b28e603bea (patch)
treeae3f8b40527ca238b618f536bc259c6e54f88bf4
parenta3684c836111a51d5827f89144f63b8318de6995 (diff)
downloadhugo-8fb933550f5269e2f21ec09ab66801b28e603bea.tar.gz
hugo-8fb933550f5269e2f21ec09ab66801b28e603bea.zip
Fix deprecation warning for resources.ToCSS
-rw-r--r--tpl/resources/resources.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/resources/resources.go b/tpl/resources/resources.go
index 5c2068b68..beace14e6 100644
--- a/tpl/resources/resources.go
+++ b/tpl/resources/resources.go
@@ -310,14 +310,14 @@ func (ns *Namespace) Minify(r resources.ResourceTransformer) (resource.Resource,
// for the converted CSS resource.
// Deprecated: Moved to the css namespace in Hugo 0.128.0.
func (ns *Namespace) ToCSS(args ...any) (resource.Resource, error) {
- hugo.Deprecate("resources.ToCSS", "Use css.SASS.", "v0.128.0")
+ hugo.Deprecate("resources.ToCSS", "Use css.Sass instead.", "v0.128.0")
return ns.cssNs.Sass(args...)
}
// PostCSS processes the given Resource with PostCSS.
// Deprecated: Moved to the css namespace in Hugo 0.128.0.
func (ns *Namespace) PostCSS(args ...any) (resource.Resource, error) {
- hugo.Deprecate("resources.PostCSS", "Use css.PostCSS.", "v0.128.0")
+ hugo.Deprecate("resources.PostCSS", "Use css.PostCSS instead.", "v0.128.0")
return ns.cssNs.PostCSS(args...)
}