mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
@@ -51,6 +51,13 @@ func init() {
|
||||
[][2]string{},
|
||||
)
|
||||
|
||||
ns.AddMethodMapping(ctx.Count,
|
||||
nil,
|
||||
[][2]string{
|
||||
{`{{"aabab" | strings.Count "a" }}`, `3`},
|
||||
},
|
||||
)
|
||||
|
||||
ns.AddMethodMapping(ctx.FindRE,
|
||||
[]string{"findRE"},
|
||||
[][2]string{
|
||||
|
Reference in New Issue
Block a user