hugo/tpl
acclassic f95fd57aac
tpl/compare: Sort special float values as string
When sorting strings a worng order is returned. This happens because the strings are first converted
to floating values to check whether or not they should be sorted as
floating values. When an error is returned the strings will be
handled as string literals.
No error will be returned when parsing Inf, Infinity or NaN (case insensitive) because they
will be coverted to special floating point values and therefore are
legal float values.
Now we check if the returned converted values are special floating
values and treat them as string literals.

Fixes #10389
2023-01-02 17:35:08 +01:00
..
cast tpl: Improve godoc 2022-05-06 19:43:22 +02:00
collections tpl: Improve template funcs GoDoc 2022-12-21 15:33:02 +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
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 tpl/diagrams: Move Goat to its own file 2022-12-25 14:02:22 +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 Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
inflect tpl: Improve template funcs GoDoc 2022-12-21 15:33:02 +01:00
internal tpl: Misco GoDoc improvements 2022-12-03 11:54:33 +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/openapi3 tpl/openapi3: Wrap *kopenapi3.T 2022-12-14 12:29:40 +01:00
os Replace all usage of CopyOnWriteFs with OverlayFs 2022-04-10 13:49:31 +02:00
partials Revise the use of htime.Since/htime.Now 2022-05-09 14:18:40 +02:00
path tpl: Use consistent delimiter spacing in examples 2022-11-25 09:54:35 +01:00
reflect all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resources tpl/resources: Fix data race in ToCSS 2022-12-21 12:26:42 +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: Use consistent delimiter spacing in examples 2022-11-25 09:54:35 +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 Revert "tpl/tplimpl: Use https in sitemap templates" 2022-12-22 08:53:58 +01:00
transform tpl: Use consistent delimiter spacing in examples 2022-11-25 09:54:35 +01:00
urls Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
template.go Fix Plainify edge cases 2022-05-25 17:55:23 +02: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