Function: usePostCollections() ​

Source: 1.1.0 · e3417e89b638

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

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

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[]>