From 2b0b4760cae169600470129fc7f530e880f12825 Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Wed, 10 Jun 2015 23:53:39 +0200 Subject: [PATCH] Add `after` to template function documentation --- content/templates/functions.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/content/templates/functions.md b/content/templates/functions.md index c949fa987..a731f6983 100644 --- a/content/templates/functions.md +++ b/content/templates/functions.md @@ -76,6 +76,16 @@ e.g. {{ .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. + +e.g. + + {{ range after 10 .Data.Pages }} + {{ .Render "title" }} + {{ end }} ### getenv Returns the value of an environment variable.