Function: usePostCollections()

Source: 1.0.0-rc.14 · ecc10ae38a81 (uncommitted changes)

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