diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-12-18 16:50:34 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-12-18 20:05:22 +0100 |
commit | d20ca3700512d661247b44d953515b9455e57ed6 (patch) | |
tree | 2db72cf0bc6246e1c28106942af6b1e6f679e4e1 /scripts/fork_go_templates | |
parent | 3e316155c5d4fbf166d38e997a41101b6aa501d5 (diff) | |
download | hugo-d20ca3700512d661247b44d953515b9455e57ed6.tar.gz hugo-d20ca3700512d661247b44d953515b9455e57ed6.zip |
tpl: Get rid of the custom template truth logic
Fixes #6615
Diffstat (limited to 'scripts/fork_go_templates')
-rw-r--r-- | scripts/fork_go_templates/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/fork_go_templates/main.go b/scripts/fork_go_templates/main.go index 127d7ce03..d9d056797 100644 --- a/scripts/fork_go_templates/main.go +++ b/scripts/fork_go_templates/main.go @@ -60,6 +60,7 @@ var ( "func (s *state) evalFunction", "func (s *state) evalFunctionOld", "func (s *state) evalField(", "func (s *state) evalFieldOld(", "func (s *state) evalCall(", "func (s *state) evalCallOld(", + "func isTrue(val reflect.Value) (truth, ok bool) {", "func isTrueOld(val reflect.Value) (truth, ok bool) {", ) htmlTemplateReplacers = strings.NewReplacer( |