hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit cc9536ec46fe76697b7d1d3f95d40d7dc9d35bf5
parent 0a2e5424ab5b684e88eebe87efc88c55e11e9789
Author: Ariejan de Vroom <ariejan@ariejan.net>
Date:   Thu, 11 Jun 2015 00:12:27 +0200

Update docs for `last` template function

Diffstat:
Mdocs/content/templates/functions.md | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md
@@ -76,11 +76,24 @@ e.g.
         {{ .Render "summary" }}
     {{ end }}
 
+### last
+Slices an array to only the last X elements.
+
+Works on [lists](/templates/list/), [taxonomies](/taxonomies/displaying/), [terms](/templates/terms/), [groups](/templates/list/)
+
+e.g.
+
+    {{ range last 10 .Data.Pages }}
+        {{ .Render "summary" }}
+    {{ end }}
+
 ### after
 Slices an array to only the items after the Xth item. Use this in 
 combination with `first` use both halves of an array split a item
 X.
 
+Works on [lists](/templates/list/), [taxonomies](/taxonomies/displaying/), [terms](/templates/terms/), [groups](/templates/list/)
+
 e.g.
 
     {{ range after 10 .Data.Pages }}