Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
tpl/tplimpl: Fix template truth logic #5739
Before this commit, due to a bug in Go's
This commit works around this by wrapping every
Those 3 template funcs from Go's stdlib are now pulled into Hugo's source tree and adjusted to support custom zero values, e.g. types that implement
This means that you can now do:
And it would work as expected.