Create dataframe of front matter and content from hugo leaf bundles

I'm wondering if there exists a package or function that can do this. Specifically, I want an R script that will loop through all the subdirectories of a hugo content folder, say content/articles/, and gather all the front matter and content of each leaf bundle into a dataframe with one per row.

Does such a thing exist?

Blogdown has so many cool features, including functions like bundle_site, so I'm wondering if this might already exist or if someone has written a script that can achieve this.

If not, how would you go about doing this? Any R snippets to get me started greatly appreciated.

blogdown does not have that. You can open a feature request for a helper function maybe.

However, it should possible to come up with your own function. You can look at fs R package listing and handling file. That would be a start

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.