Generate from mysql data to Hugo

Hi,
i’m wondering is there any way i can export my mysql data to become a hugo post.

My original problem was i have a blog in firebase. I also didn’t find how to migrate from firebase to hugo. My plan is to convert from firebase to mysql first, and then from mysql to generate to hugo posts

So i want to export each row to become a single hugo post, not all data in 1 files. I’m just wondering if there is any tool for that

thanks!

I don’t know what that means, but I’m almost sure you can export whatever to JSON. Do that instead. :slight_smile:

thanks for replying. I actually want to export each row to become a single hugo post, not all data in 1 files. I’m just wondering if there is any tool for that

See here for a technique using environment variables so that each row in a CSV becomes a hugo post.

https://discourse.gohugo.io/t/work-around-for-making-pages-from-data/13964/15

1 Like

I made a little go script, to generate json file to Hugo: Repo conver json to Hugo markdown files
If you are curious, here is the blog explanation