

Maybe 25 years ago i build my first website for a paying customer ( my dad). I decided to go for php which was new to me at the time.
I figured it would be too risky ( even back then) to have PHP generate dynamic pages so instead I had php generate static html.
So whenever website needed updating , for example a new folder with images was added, you could just load the admin.php and it would generate gallery pages for you.
Would probably still work 25 year later if wasn’t eventually replaced with some WordPress or something
For some optimism check out Zetland https://en.wikipedia.org/wiki/Zetland_(company)
They just started something similar in Finland