Decades ago (before PHP), I maintained a photo gallery website of personal images. The content was static i.e. no database or javascript. I wrote some Perl scripts to resize the images (main and thumbnails) and to create the associated HTML. It worked well; drop some images in a directory, script created the content, content was published to net. Simple and Secure.
Then came PHP and various photo gallery software like Coppermine, and various CMSs (Wordpress, Joomla, Drupal). More functionality and complexity and less security.
what's old is new again
Fast forward to today... Static Site Generation is now a (big) thing.
One popular option is to render MarkDown (or AsciiDoc) content from github. There are many tools to do this: I chose Gatsby because it uses GraphQL + React, and has a large growing community around it.
This follows the general https://jamstack.org/ paradigm
Some benefits are security, speed, and versioned content in Git. And no database unlike a LAMP or MEAN stack.
Netlify is used to
Github offers GitHub Pages.
In addition to supporting regular HTML content, GitHub Pages support Jekyll static site generator.