mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -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
21 lines
No EOL
398 B
Markdown
21 lines
No EOL
398 B
Markdown
---
|
|
title: hassuffix
|
|
linktitle: hasSuffix
|
|
description: Tests whether a string ends with suffix.
|
|
date: 2023-03-01
|
|
publishdate: 2023-03-01
|
|
lastmod: 2023-03-01
|
|
categories: [functions]
|
|
menu:
|
|
docs:
|
|
parent: "functions"
|
|
keywords: [strings]
|
|
signature: ["hasSuffix STRING SUFFIX"]
|
|
workson: []
|
|
hugoversion:
|
|
relatedfuncs: [hasPrefix]
|
|
deprecated: false
|
|
aliases: []
|
|
---
|
|
|
|
* `{{ hasSuffix "Hugo" "go" }}` → true |