diff options
Diffstat (limited to 'tpl/compare/init.go')
-rw-r--r-- | tpl/compare/init.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/compare/init.go b/tpl/compare/init.go index 9aa533f55..f423f615e 100644 --- a/tpl/compare/init.go +++ b/tpl/compare/init.go @@ -40,14 +40,14 @@ func init() { ns.AddMethodMapping(ctx.Eq, []string{"eq"}, [][2]string{ - {`{{ if eq .Section "blog" }}current{{ end }}`, `current`}, + {`{{ if eq .Section "blog" }}current-section{{ end }}`, `current-section`}, }, ) ns.AddMethodMapping(ctx.Ge, []string{"ge"}, [][2]string{ - {`{{ if ge .Hugo.Version "0.36" }}Reasonable new Hugo version!{{ end }}`, `Reasonable new Hugo version!`}, + {`{{ if ge hugo.Version "0.80" }}Reasonable new Hugo version!{{ end }}`, `Reasonable new Hugo version!`}, }, ) |