HUGO
News Docs Themes Community GitHub

ByDate

PAGES.ByDate

Returns the given page collection sorted by date in ascending order.

ByExpiryDate

PAGES.ByExpiryDate

Returns the given page collection sorted by expiration date in ascending order.

ByLanguage

PAGES.ByLanguage

Returns the given page collection sorted by language in ascending order.

ByLastmod

PAGES.ByLastmod

Returns the given page collection sorted by last modification date in ascending order.

ByLength

PAGES.ByLength

Returns the given page collection sorted by content length in ascending order.

ByLinkTitle

PAGES.ByLinkTitle

Returns the given page collection sorted by link title in ascending order, falling back to title if link title is not defined.

ByParam

PAGES.ByParam PARAM

Returns the given page collection sorted by the given parameter in ascending order.

ByPublishDate

PAGES.ByPublishDate

Returns the given page collection sorted by publish date in ascending order.

ByTitle

PAGES.ByTitle

Returns the given page collection sorted by title in ascending order.

ByWeight

PAGES.ByWeight

Returns the given page collection sorted by weight in ascending order.

GroupBy

PAGES.GroupBy FIELD [SORT]

Returns the given page collection grouped by the given field in ascending order.

GroupByDate

PAGES.GroupByDate LAYOUT [SORT]

Returns the given page collection grouped by date in descending order.

GroupByExpiryDate

PAGES.GroupByExpiryDate LAYOUT [SORT]

Returns the given page collection grouped by expiration date in descending order.

GroupByLastmod

PAGES.GroupByLastmod LAYOUT [SORT]

Returns the given page collection grouped by last modification date in descending order.

GroupByParam

PAGES.GroupByParam PARAM [SORT]

Returns the given page collection grouped by the given parameter in ascending order.

GroupByParamDate

PAGES.GroupByParamDate PARAM LAYOUT [SORT]

Returns the given page collection grouped by the given date parameter in descending order.

GroupByPublishDate

PAGES.GroupByPublishDate LAYOUT [SORT]

Returns the given page collection grouped by publish date in descending order.

Len

PAGES.Len

Returns the number of pages in the given page collection.

Limit

PAGES.Limit NUMBER

Returns the first N pages from the given page collection.

Next

PAGES.Next PAGE

Returns the next page in a page collection, relative to the given page.

Prev

PAGES.Prev PAGE

Returns the previous page in a page collection, relative to the given page.

Related

PAGES.Related PAGE

Returns a collection of pages related to the given page.

Reverse

PAGES.Reverse

Returns the given page collection in reverse order.