mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
committed by
Bjørn Erik Pedersen
parent
b6a30283f0
commit
2818878994
@@ -48,6 +48,13 @@ func init() {
|
||||
},
|
||||
)
|
||||
|
||||
ns.AddMethodMapping(ctx.FileExists,
|
||||
[]string{"fileExists"},
|
||||
[][2]string{
|
||||
{`{{ fileExists "foo.txt" }}`, `false`},
|
||||
},
|
||||
)
|
||||
|
||||
return ns
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user