mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-02 11:42:37 +00:00
7fd64f19c8
It's a beautiful thing. A thousand thanks, Bud. See PR rdwatters/hugo-docs-concept#118
28 lines
502 B
Markdown
28 lines
502 B
Markdown
---
|
|
title: split
|
|
# linktitle: split
|
|
description: splits a string into substrings separated by a delimiter
|
|
godocref:
|
|
date: 2017-02-01
|
|
publishdate: 2017-02-01
|
|
lastmod: 2017-02-01
|
|
categories: [functions]
|
|
menu:
|
|
docs:
|
|
parent: "functions"
|
|
tags: [strings]
|
|
ns:
|
|
signature: ["split STRING DELIM"]
|
|
workson: []
|
|
hugoversion:
|
|
relatedfuncs: []
|
|
deprecated: false
|
|
aliases: []
|
|
---
|
|
|
|
`split` splits a string into substrings separated by a delimiter.
|
|
|
|
* `{{split "tag1,tag2,tag3" "," }}` → ["tag1" "tag2" "tag3"]
|
|
|
|
|