Function: mergeCollapsedCollections() ​

Source: 1.1.0 · e3417e89b638

ts
function mergeCollapsedCollections(
   posts, 
   allPages, 
   collectionConfigs, 
   siteConfig
): Post[];

Defined in: packages/valaxy/client/composables/post/index.ts:64

Merge collapsed collections into the post list. For collapsed collections, add a single synthetic entry representing the collection, using the latest article’s date for sorting.

Parameters ​

posts ​

Post[]

allPages ​

Post[]

collectionConfigs ​

CollectionConfig[]

siteConfig ​

SiteConfig

Returns ​

Post[]