mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-12 09:52:16 +00:00
This commit adds a custom index template function that deviates from the stdlib simply by not returning an "index out of range" error if an array, slice or string index is out of range. Instead, we just return nil values. This should help make the new default function more useful for Hugo users. Fixes #1949 |
||
---|---|---|
.. | ||
reflect_helpers.go | ||
template.go | ||
template_embedded.go | ||
template_funcs.go | ||
template_funcs_test.go | ||
template_resources.go | ||
template_resources_test.go | ||
template_test.go |