]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
Fix deprecation warning for resources.ToCSS
authorAndreas Deininger <andreas@deininger.net>
Fri, 30 Aug 2024 20:15:29 +0000 (22:15 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 30 Aug 2024 20:26:29 +0000 (22:26 +0200)
tpl/resources/resources.go

index 5c2068b68f5c21dc540e61fa339edec1275a0bcd..beace14e6c82d6493f4913cdecad566db3a417a7 100644 (file)
@@ -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...)
 }