mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Add hasPrefix template function.
This commit is contained in:
parent
0f6b334b67
commit
2e92f36890
1 changed files with 1 additions and 0 deletions
|
@ -1428,6 +1428,7 @@ func init() {
|
|||
"lower": func(a string) string { return strings.ToLower(a) },
|
||||
"upper": func(a string) string { return strings.ToUpper(a) },
|
||||
"title": func(a string) string { return strings.Title(a) },
|
||||
"hasPrefix": func(a, b string) bool { return strings.HasPrefix(a, b) },
|
||||
"partial": Partial,
|
||||
"ref": Ref,
|
||||
"relref": RelRef,
|
||||
|
|
Loading…
Reference in a new issue