3 ms·
The popular static site generator Hugo also supports static data in the form of a 'data' directory[1] where JSON files and other stuff can be stored. [1] https
by JensRantil 5y ago
The popular static site generator Hugo also supports static data in the form of a 'data' directory[1] where JSON files and other stuff can be stored.
[1] https://gohugo.io/templates/data-templates/#readout https://gohugo.io/templates/data-templates/#readout
- simonw 5y agoHugo doesn't execute any server-side code at run-time though does it? I believe the content in that data directory is made available to the templates at compile time, but the actual deployed asset is still just static files.
- JensRantil 5y agoCorrect, but there's nothing stopping your from having a lambda function regenerating S3 content from Hugo periodically/by request.