Closed tjex closed 1 year ago
Sorry for the inconvenience and thanks for the interest in the component!
There was a major upgrade of Astro, where they switched to using Collections, which was implemented recently in my component as well. I tested the new implementation twice, in the test site of the component itself and in my personal blog, both work fine and I got some input from other devs using the component that everything works fine.
That being said, I need to take your sample code, test it locally and I'll get back to you with a solution. š
great, thanks!
Sorry for the late reply, I was quite busy with work, I tried a few days ago and now again to reproduce your issue but couldn't.
Is there a complete sample repo/code for me to test it against? š«¤
thanks for getting back. I'm in the middle of a few things myself. I'll try reimplementing your plugin on a separate branch of my website, which is on github and ping you here with a link when it's available. And if in the process I realise it's something on my end, I'll update here accordingly š
thanks for getting back. I'm in the middle of a few things myself. I'll try reimplementing your plugin on a separate branch of my website, which is on github and ping you here with a link when it's available. And if in the process I realise it's something on my end, I'll update here accordingly š
What I can tell you is that the error you're getting means that you didn't pass a valid post so the problem must be in the way you pass your posts to my component, most likely in your posts loop.
Hope that helps a bit, I look forward to fixing your issue when you set up the new branch. š
Heyo. Here's the branch where I've tried reimplementing the plugin: https://github.com/tjex/tjex.net/tree/post-preview
Implementation is here: https://github.com/tjex/tjex.net/blob/post-preview/src/pages/blog/%5B...page%5D.astro
Heyo. Here's the branch where I've tried reimplementing the plugin: https://github.com/tjex/tjex.net/tree/post-preview
Implementation is here: https://github.com/tjex/tjex.net/blob/post-preview/src/pages/blog/%5B...page%5D.astro
Great, I'll be working on it tonight, thanks š
thanks again :)
Hello, thanks for your plugin. Looks great, but unfortunately when trying to implement I'm getting the following error:
This is my loop for getting the static paths.
./[...page].astro
:the
post
prop is beings passed into theBlogPostPreview
component. It's in this component that I want to implement the post excerpt.../../components/BlogPostPreview.astro
:You can see here how the blog page looks normally (ie without the post-excerpt implementation): https://tjex.net/blog/