Sometimes, instead of using a content management system or building an entire full-stack web application, it can be more convenient to generate static pages and then upload them via something like FTP or SSH.
I am working on a Java page generator for my websites. It's kind of like Jekyll, except that Jekyll is Ruby. Also, my web page generator is more specific to my projects, as opposed to being really general-purpose.
When it comes to security and maintainability, the less stuff you have, the easier it is. So instead of worrying about all of the problems associated with CMSes (like CVEs, glitches, and so on), you can just create a simple static site. That's not to say that WordPress isn't useful. I do use it, but it's not right for every use-case.
Page Generator is on GitHub here but it's very much an unfinished project right now.