Hi all - long time software architect person, and recently got turned onto Hugo. I’d previously liked Jekyll & Ghost, but there are some projects where it would be great to roll out a static marketing/blog/static site, and colocate it with an application.
For example:
-
/
goes to Hugo homepage -
/about
goes to Hugo static page -
/contact
… ^^, you get the picture -
/login
||/signup
goes to app routes (i.e. React, Express, PHP, etc) -
/some/app/route
goes to app
Initial thoughts on doing this are:
- Run Hugo & app separately & use web proxy (HAProxy, Apache, etc) to route between them
- Have Hugo site live within public-like directory, and configure the routes in-app (i.e. within Express, etc)
Any thoughts from the community on how you’ve done this, any best practices that you’ve come across/used, any other thoughts? Looking forward to responses.