group_by_date
x | group_by_date(format=, attribute=?, order=?)[{key, pages}] grouped by the date formatted with format (strftime), newest first (order="asc": oldest first); no date is Go’s zero date (0001).
Arguments#
| Argument | Type | Required |
|---|---|---|
format | string | yes |
attribute | string | no |
order | string | no |
Details#
- Kind: Filter, implemented by fugo.
- Available in: every kind of template: layouts, partials, shortcodes and render hooks.
- Output: escaped like any value, unless marked
safe. - Site-bound: reads the site or the page being rendered; in a component, pass
page=or declare@__nh.