hugo/tpl
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
..
cast tpl: Improve godoc 2022-05-06 19:43:22 +02:00
collections tpl/collections: Improve error message in Index 2023-02-08 10:22:20 +01:00
compare tpl/compare: Sort special float values as string 2023-01-02 17:35:08 +01:00
crypto tpl: Improve template funcs GoDoc 2022-12-21 15:33:02 +01:00
css tocss: Simplify the hugo:vars type handling 2023-02-22 13:26:10 +01:00
data tpl: Improve template funcs GoDoc 2022-12-21 15:33:02 +01:00
debug tpl: Improve template funcs GoDoc 2022-12-21 15:33:02 +01:00
diagrams Misc doc, code refactoring to improve documentation 2023-01-04 18:01:26 +01:00
encoding tpl: Improve template funcs GoDoc 2022-12-21 15:33:02 +01:00
fmt tpl: Improve template funcs GoDoc 2022-12-21 15:33:02 +01:00
hugo all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
images Misc doc, code refactoring to improve documentation 2023-01-04 18:01:26 +01:00
inflect tpl: Improve template funcs GoDoc 2022-12-21 15:33:02 +01:00
internal tpl/internal: Sync Go template src to Go 1.20 2023-02-22 11:26:52 +01:00
js all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
lang Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
math tpl: Use consistent delimiter spacing in examples 2022-11-25 09:54:35 +01:00
openapi Misc doc, code refactoring to improve documentation 2023-01-04 18:01:26 +01:00
os Misc doc, code refactoring to improve documentation 2023-01-04 18:01:26 +01:00
partials Only invoke a given cached partial once 2023-01-25 17:35:23 +01:00
path Misc doc, code refactoring to improve documentation 2023-01-04 18:01:26 +01:00
reflect all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resources Misc doc, code refactoring to improve documentation 2023-01-04 18:01:26 +01:00
safe tpl: Improve godoc 2022-05-06 19:43:22 +02:00
site all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
strings tpl/strings: Add strings.ContainsNonSpace 2023-02-05 20:08:44 +01:00
templates all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
time Use configured timeZone for the clock 2022-05-08 16:56:26 +02:00
tplimpl tocss: Simplify the hugo:vars type handling 2023-02-22 13:26:10 +01:00
transform Add page fragments support to Related 2023-02-21 17:56:41 +01:00
urls Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
template.go Misc doc, code refactoring to improve documentation 2023-01-04 18:01:26 +01:00
template_info.go Add --printUnusedTemplates 2022-02-15 20:01:57 +01:00
template_test.go Fix Plainify edge cases 2022-05-25 17:55:23 +02:00