Bjørn Erik Pedersen
9937a5dcaa
tpl/css: Deprecate libsass in favor of dartsass (note)
...
The upstream library is now EOL and the repo is archived. Also, it's time for us to move away from the extended CGO build and for Hugo users not already done that, move to https://gohugo.io/functions/css/sass/#dart-sass
https://github.com/sass/libsass
Closes #14261
2025-12-16 22:31:13 +01:00
Joe Mooring
fa7d37f0c8
tpl: Add missing functions to init files
...
Closes #14249
2025-12-13 18:32:26 +01:00
Joe Mooring
889308dd85
resources: Address Dart Sass deprecation of global built-in functions
...
See https://github.com/sass/dart-sass/releases/tag/1.80.0
Fixes #12961
2024-11-01 14:05:27 +01:00
Bjørn Erik Pedersen
e1317dd322
Add css.TailwindCSS
...
Closes #12618
Closes #12620
2024-06-25 15:48:02 +02:00
Bjørn Erik Pedersen
eddcd2bac6
Clean up the css related template funcs package structure
...
Deprecate and move:
* resources.ToCSS => css.SASS
* resources.PostProcess => css.PostProcess
* resources.Babel => js.Babel
Updates #12618
2024-06-25 15:48:02 +02:00
Bjørn Erik Pedersen
a795acbcd8
all: Run gofumpt -l -w .
2024-01-28 23:14:09 +01:00
Bjørn Erik Pedersen
ce524d0b5e
Add a page template func
...
Fixes #9339
2023-02-25 19:53:18 +01:00
Bjørn Erik Pedersen
ecf3cd514f
tocss: Simplify the hugo:vars type handling
...
Instead of maintaing a list of all CSS units and functions this commit:
* Uses 3 regexps to detect typed CSS values (e.g. `24px`) + properly handle numeric Go types.
* These regexps may have some false positives -- e.g. strings that needs to be quoted.
* For that rare case, you can mark the string with e.g. `"32xxx" | css.Quoted`
* For the opposite case: `"32" | css.Unquoted`
Updates #10632
2023-02-22 13:26:10 +01:00