mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-03 04:13:56 -05:00
d171d1543d
strings.HasPrefix already has an alias of hasPrefix but strings.HasSuffix has no such alias. This PR adds a hasSuffix alias to the tpl function with corresponding function documentation. It also adds a Minor update to the hasPrefix function documentation re: keywords and relatedfuncs. Completes https://github.com/gohugoio/hugo/issues/10474
398 B
398 B
title | linktitle | description | date | publishdate | lastmod | categories | menu | docs | parent | keywords | signature | workson | hugoversion | relatedfuncs | deprecated | aliases | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
hassuffix | hasSuffix | Tests whether a string ends with suffix. | 2023-03-01 | 2023-03-01 | 2023-03-01 |
|
functions |
|
|
|
false |
{{ hasSuffix "Hugo" "go" }}
→ true