You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to get a list of all posts in my /posts directory as well as each post's metadata. However, I can't seem to find anywhere to point me in the right direction. i don't have a .json post index to map over, and I don't want to use one either. I should mention I previously got this working with @jackfranklin/rollup-plugin-markdown using the following syntax:
importallPostsfrom'./posts/*.md'
In short: when I create a new md file, I want that post to show up in a posts list
Essentially, I want
/posts
first-post.md
second-post.md
to turn into something like this on the front-end
My Blog
1. First Post
2. Second Post
The text was updated successfully, but these errors were encountered:
I'm currently using import-all.macro simply because the alternatives I've found are not as actively maintained but have also used babel-plugin-import-glob-array. Something like the snippet below would work.
I want to get a list of all posts in my
/posts
directory as well as each post's metadata. However, I can't seem to find anywhere to point me in the right direction. i don't have a.json
post index to map over, and I don't want to use one either. I should mention I previously got this working with @jackfranklin/rollup-plugin-markdown using the following syntax:In short: when I create a new
md
file, I want that post to show up in a posts listEssentially, I want
to turn into something like this on the front-end
The text was updated successfully, but these errors were encountered: