docs: Suggests the use of delimiter for taxonomy listing

as a shortcut suggested by @digitalcraftsman.

See #2143
This commit is contained in:
Anthony Fok 2016-06-29 22:52:29 -06:00
parent 364686ecbb
commit 195a2b3845

View file

@ -1,7 +1,7 @@
---
aliases:
- /indexes/displaying/
lastmod: 2016-05-13
lastmod: 2016-06-29
date: 2013-07-01
linktitle: Displaying
menu:
@ -55,6 +55,10 @@ To list such taxonomy use the following:
{{ range $index, $director := .Params.directors }}{{ if gt $index 0 }}, {{ end }}<a href="directors/{{ . | urlize }}">{{ . }}</a>{{ end }}
{{ end }}
Alternatively, you may use the [delimit]({{< relref "templates/functions.md#delimit" >}})
template function as a shortcut if the taxonomies should just be listed
with a separator. See {{< gh 2143 >}} on GitHub for discussion.
## 2. Listing content with the same taxonomy term
First, you may be asking why you would use this. If you are using a