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
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
images
inflect tpl: Improve template funcs GoDoc 2022-12-21 15:33:02 +01:00
internal
js
lang
math
openapi/openapi3
os
partials
path
reflect
resources
safe
site
strings
templates
time
tplimpl Revert "tpl/tplimpl: Use https in sitemap templates" 2022-12-22 08:53:58 +01:00
transform
urls
template.go
template_info.go
template_test.go