|
|
|
Is there a way to generate static sites with content from DB?
|
|
1 points
by kannangce
1494 days ago
|
|
For one of my use case, we have to render pages generated from almost a static data available in DB. I'm wondering if we can have hugo(/any static site) to use DB as a datasource to get the data from DB for site generation. Do we have a plugin that could support that? |
|
If you have an existing Hugo install, the easiest thing to do is write code to output your DB into static files, then run the Hugo process. A batch file or shell script can easily be used to automate the publication process. Trying to hack Hugo to directly use the DB is not worth it.