]> git.maquefel.me Git - brevno-suite/hugo/commit
resource_transformers/tocss: Fixed hugo:vars casting
authorAcClassic <cantillo.trd@gmail.com>
Sun, 12 Feb 2023 19:53:30 +0000 (20:53 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 22 Feb 2023 12:26:10 +0000 (13:26 +0100)
commita1a9c08b5ffee8432d9ed23143233d5f00b50608
treeeacdae6fed63685f2d1bb9781c0a8a36788bf92b
parent6abd15e781377ae35cd139db92cdd8d44b77360c
resource_transformers/tocss: Fixed hugo:vars casting

Variables passed via the hugo:vars function where passed as type string.
This caused problems when using the variables in sass functions because
these expect a specific type. Now we check if the passed variables have
to be quoted and therefore are of type string or if they should not be
quoted and let the type interpretation up to the sass compiler.

Fixes #10632
resources/resource_transformers/tocss/dartsass/integration_test.go
resources/resource_transformers/tocss/internal/sass/cssValues.go [new file with mode: 0644]
resources/resource_transformers/tocss/internal/sass/helpers.go