Replies: 2 comments
-
Related to the comment I just left on #375 💯 agree showing the label (or another field) here would be nicer, but it requires us to read the contents of each file, right now it's showing the filenames (the entry slug) which is significantly more performant at scale (noting that unless you're running in local mode, we're loading data over the GitHub API) We'll do something about it soon, just need to make sure we don't blow things up in the process! |
Beta Was this translation helpful? Give feedback.
-
Just a thought, as a temporary solution, why not just replace "-" with SPACE and and use title casing ? Ex: the-slug-of-a-post = The Slug of a Post. |
Beta Was this translation helpful? Give feedback.
-
Like the array field, where we can specify an itemLabel. Is there something similar for Collection items? Currently, it uses the slug.
Even if it defaults to the slug field, it would be awesome if it could use the regular text version rather than the slugified version.
Maybe I am missing something and this already exists but you can't pass a second object into the collection function like so
collection({ }, { })
and the first object doesn't have any itemLabel field.Beta Was this translation helpful? Give feedback.
All reactions