You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when calling getCollection() inside a preview template, only the data of the items is returned. In order to be useful, the returned Map should also include the path & slug.
Since the function already returns a Map (with just a single data key), adding path and slug is trivial and would be a non-breaking change.
I'll submit a PR for this.
The text was updated successfully, but these errors were encountered:
fgnass
added
the
type: feature
code contributing to the implementation of a feature and/or user facing functionality
label
Mar 24, 2025
Currently, when calling
getCollection()
inside a preview template, only the data of the items is returned. In order to be useful, the returned Map should also include the path & slug.Since the function already returns a Map (with just a single
data
key), adding path and slug is trivial and would be a non-breaking change.I'll submit a PR for this.
The text was updated successfully, but these errors were encountered: