bens-blog-boilerplate
bens-blog-boilerplate copied to clipboard
Make BlogPostPreview more configurable
trafficstars
Personally, I have in my .md files more variables that I want to display in the post preview. For example I have a variable named icon to display icon near the post.
I think you can pass a variable called post to the parent (where the post preview is used). The post will be an object with all the variables inside the post. In this way the user can decide which parameters of the post he wants to show and how.
Inspired from @Frostqui