ref: cc9536ec46fe76697b7d1d3f95d40d7dc9d35bf5
parent: 0a2e5424ab5b684e88eebe87efc88c55e11e9789
author: Ariejan de Vroom <[email protected]>
date: Wed Jun 10 20:12:27 EDT 2015
Update docs for `last` template function
--- a/docs/content/templates/functions.md
+++ b/docs/content/templates/functions.md
@@ -76,10 +76,23 @@
{{ .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.