Skip to content

Commit

Permalink
docs: Suggests the use of delimiter for taxonomy listing
Browse files Browse the repository at this point in the history
as a shortcut suggested by @digitalcraftsman.

See #2143
  • Loading branch information
anthonyfok committed Jun 30, 2016
1 parent 364686e commit 195a2b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/content/taxonomies/displaying.md
@@ -1,7 +1,7 @@
---
aliases:
- /indexes/displaying/
lastmod: 2016-05-13
lastmod: 2016-06-29
date: 2013-07-01
linktitle: Displaying
menu:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 195a2b3

Please sign in to comment.