commit 195a2b384526c8c622d0faa5110503914e8def87
parent 364686ecbb135b53f4e6e0484836da071c64c35b
Author: Anthony Fok <foka@debian.org>
Date: Wed, 29 Jun 2016 22:52:29 -0600
docs: Suggests the use of delimiter for taxonomy listing
as a shortcut suggested by @digitalcraftsman.
See #2143
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/docs/content/taxonomies/displaying.md b/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:
@@ -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