Dynamically fetch contents into my hugo site from mysql database

hey can we connect mysql with hugo like we connect mysql with html with the help of php to create a dashboard to connect front end with backend for edit delete add stuff using dashboard

Yes, you can, but you’ll need to provide an API layer for resources, so that you can use resources.GetRemote to fetch the remote data.

1 Like

Just use a CMS, it’ll be way easier than inventing your own…


Thanks for your reply
I have some information as .md file and even if i create an api and link that inside my .md file while calling that inside my code is throwing hugo server error as in I could not view the output.
It would be really helpful if you could help me

@Ysu I agreed with @nternetinspired opinion, it would be complex for this.

If you really want to implement it with this approach, you should post some code snippet and the error log as much detail as possible, so that others can help you.