mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 11:02:06 -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) },
|
"lower": func(a string) string { return strings.ToLower(a) },
|
||||||
"upper": func(a string) string { return strings.ToUpper(a) },
|
"upper": func(a string) string { return strings.ToUpper(a) },
|
||||||
"title": func(a string) string { return strings.Title(a) },
|
"title": func(a string) string { return strings.Title(a) },
|
||||||
|
"hasPrefix": func(a, b string) bool { return strings.HasPrefix(a, b) },
|
||||||
"partial": Partial,
|
"partial": Partial,
|
||||||
"ref": Ref,
|
"ref": Ref,
|
||||||
"relref": RelRef,
|
"relref": RelRef,
|
||||||
|
|
Loading…
Reference in a new issue