From 82abca32fa8791e526edd820c32c0b8f9d8e0e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 19 Jun 2020 09:37:37 +0200 Subject: [PATCH] Add GroupByLastmod Fixes #7408 --- docs/content/en/templates/lists.md | 37 +++++++++++++++++++++++++++++- resources/page/pagegroup.go | 14 +++++++++++ resources/page/pagegroup_test.go | 37 ++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+), 1 deletion(-) diff --git a/docs/content/en/templates/lists.md b/docs/content/en/templates/lists.md index c2140b472..be9df664c 100644 --- a/docs/content/en/templates/lists.md +++ b/docs/content/en/templates/lists.md @@ -424,7 +424,7 @@ In the above example, you may want `{{.Title}}` to point the `title` field you h ### By Publish Date {{< code file="layouts/partials/by-page-publish-date.html" >}} - + {{ range .Pages.GroupByPublishDate "2006-01" }}

{{ .Key }}