Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-18 18:50:34 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-18 22:05:22 +0300
commitd20ca3700512d661247b44d953515b9455e57ed6 (patch)
tree2db72cf0bc6246e1c28106942af6b1e6f679e4e1 /scripts/fork_go_templates
parent3e316155c5d4fbf166d38e997a41101b6aa501d5 (diff)
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.go1
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(