mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 12:12:37 +00:00
0347628824
* 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>
545 B
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 |
|
|
|
|
|
false |
{{ $pdfPath := "/path/to/some.pdf" }}
{{ strings.HasSuffix $pdfPath "pdf" }} → true
{{ strings.HasSuffix $pdfPath "txt" }} → false