Function: usePostCollections() ​

Source: 1.2.0 · ca61b741492d

ts
function usePostCollections(postPath): ComputedRef<PostCollectionInfo[]>;

Defined in: packages/valaxy/client/composables/collections.ts:110

Find which collection(s) a given post path belongs to. Checks both key-based items (/collections/{collKey}/{item.key}) and internal link items (item.link).

Parameters ​

postPath ​

MaybeRef<string>

Returns ​

ComputedRef<PostCollectionInfo[]>