Files
hugo/content/en/functions/strings.HasSuffix.md
T
Andrew Dawes 0347628824 Fixed some grammar issues and typos (#1865)
* Fixed some grammar issues and typos

* Update content/en/content-management/sections.md

Co-authored-by: Joe Mooring <joe@mooring.com>

* Update content/en/content-management/shortcodes.md

Co-authored-by: Joe Mooring <joe@mooring.com>

* Update content/en/getting-started/configuration.md

Co-authored-by: Joe Mooring <joe@mooring.com>

* Update content/en/hosting-and-deployment/hosting-on-netlify.md

Co-authored-by: Joe Mooring <joe@mooring.com>

* Update content/en/templates/menu-templates.md

Co-authored-by: Joe Mooring <joe@mooring.com>

* Update content/en/templates/menu-templates.md

Co-authored-by: Joe Mooring <joe@mooring.com>

* Update content/en/templates/shortcode-templates.md

Co-authored-by: Joe Mooring <joe@mooring.com>

Co-authored-by: Joe Mooring <joe@mooring.com>
2022-11-06 11:10:20 -08:00

545 B

title, description, date, publishdate, lastmod, categories, menu, keywords, signature, workson, hugoversion, relatedfuncs, deprecated, aliases
title description date publishdate lastmod categories menu keywords signature workson hugoversion relatedfuncs deprecated aliases
strings.HasSuffix Determine whether a given string ends with the provided trailing suffix string. 2019-08-13 2019-08-13 2019-08-13
functions
docs
parent
functions
strings
strings.HasSuffix STRING SUFFIX
hasPrefix
false
{{ $pdfPath := "/path/to/some.pdf" }}
{{ strings.HasSuffix $pdfPath "pdf" }} → true
{{ strings.HasSuffix $pdfPath "txt" }} → false