bens-blog-boilerplate icon indicating copy to clipboard operation
bens-blog-boilerplate copied to clipboard

Make BlogPostPreview more configurable

Open bencodezen opened this issue 5 years ago • 0 comments
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

bencodezen avatar Jun 07 '20 21:06 bencodezen