mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-28 13:10:48 +00:00
51cabe6faf
`substr` template function takes one or two range arguments. Both arguments must be int type values but if it is used with a calclation function e.g. `add`, `len` etc, it causes a wrong type error. This fixes the issue to allow the function to take other integer type variant like `int64` etc. This also includes a small fix on no range argument case. Fix #1190 |
||
---|---|---|
.. | ||
template.go | ||
template_embedded.go | ||
template_funcs.go | ||
template_funcs_test.go | ||
template_resources.go | ||
template_resources_test.go | ||
template_test.go |