hugo/tpl
Baibhav Vatsa 0e75af74db tpl: Last now accepts 0 as limit
Modified the if conditional because of which last threw an error if 0 was passed as limit. The function now returns an empty slice if it is called with 0 as limit. The behavior of first and last is now the same when 0 is passed as limit. Also added tests to test the new behavior.

Fixes #6419
2019-10-11 20:34:51 +02:00
..
cast tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
collections tpl: Last now accepts 0 as limit 2019-10-11 20:34:51 +02:00
compare tpl: Remove eq argument limitation 2019-09-05 14:38:47 +02:00
crypto tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
data tpl: Make getJSON/getCVS accept non-string args 2019-10-10 13:30:39 +02:00
encoding tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
fmt tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
hugo tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
images Allow slices in the image Filter funcs, not just varargs 2019-09-04 17:24:50 +02:00
inflect tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
internal tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
lang tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
math tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
os tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
partials tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
path tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
reflect tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
resources Image resource refactor 2019-08-26 15:00:44 +02:00
safe tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
site tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
strings tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
templates tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
time tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
tplimpl Support typed bool, int and float in shortcode params 2019-09-29 23:22:41 +02:00
transform deps: Upgrade to latest version of emoji dependency 2019-10-05 22:58:53 +02:00
urls Support typed bool, int and float in shortcode params 2019-09-29 23:22:41 +02:00
template.go Add Hugo Modules 2019-07-24 09:35:53 +02:00
template_info.go tpl: Allow the partial template func to return any type 2019-04-02 10:30:24 +02:00
template_test.go tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00