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.