From 448f0306d79c32089ad148e131063b6fb836454e Mon Sep 17 00:00:00 2001 From: Hanchen Wang Date: Wed, 11 May 2016 10:16:44 -0400 Subject: [PATCH] docs: Example of how to use Order by ExpiryDate --- docs/content/templates/list.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/content/templates/list.md b/docs/content/templates/list.md index 3ce293dac..39a4b10ea 100644 --- a/docs/content/templates/list.md +++ b/docs/content/templates/list.md @@ -187,6 +187,15 @@ your list templates:
{{ .PublishDate.Format "Mon, Jan 2, 2006" }}
{{ end }} + +### Order by ExpiryDate + + {{ range .Data.Pages.ByExpiryDate }} +
  • + {{ .Title }} +
    {{ .ExpiryDate.Format "Mon, Jan 2, 2006" }}
    +
  • + {{ end }} ### Order by Lastmod