From: Anthony Fok Date: Thu, 30 Jun 2016 04:52:29 +0000 (-0600) Subject: docs: Suggests the use of delimiter for taxonomy listing X-Git-Tag: v0.17~267 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=195a2b38;p=brevno-suite%2Fhugo docs: Suggests the use of delimiter for taxonomy listing as a shortcut suggested by @digitalcraftsman. See #2143 --- diff --git a/docs/content/taxonomies/displaying.md b/docs/content/taxonomies/displaying.md index 72597123..5250e0bb 100644 --- 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 }}{{ . }}{{ 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