Open jits opened 4 weeks ago
Thanks for your feedback :raised_hands:
Definitely a usage I didn't consider but totally valid. Coming up with some kind of component that would potentially fit all use cases is not something realistic but exposing the data, or some of it, sounds like a solid plan.
I think it should follow the approach used by Starlight, e.g. exposing some data (rather than a function returning it). Altho, as Starlight is in the process of moving its own route data, it may be worth waiting for that to be done before implementing it in this plugin, so we can have a more consistent approach in the ecosystem.
Thanks @HiDeoo — sounds good. I like the approach of exposing the underlying data. Yes, it makes sense to wait to see how things settle first.
I want to take this opportunity to thank you for your amazing work on Starlight, the Starlight Blog plugin, and the ecosystem at large 🙌🏽
Is your feature request related to a problem?
I'm not able to access the underlying list of blog posts in an easy way, without reproducing the fetching logic within the plugin.
Describe the solution you'd like
I'd like to be able to list the recent posts on the homepage.
Describe alternatives you've considered
Copying and pasting the logic from the
libs/content.ts
in my own page/component/module, to be able to retrieve the latest posts.Additional Context
No response