I’m one who prefers static html which I code myself. SSG’s, while definitely (sort of) convenient, e…g Hugo, which I myself like but do not use, come with burdens. One is complexity, which for users new to SSG’s, can easily push said persons to the point of abandoning them completely in favor of extremely insecure offerings such as Wordpress which requires more knowledge to deter the malicious bored and criminal from, at worst, destroying one’s business and identity thievery.
SSG’s - Hugo, Django, Hexo, Gatsby, Jekyll, etc. are easier to secure yet still require in-depth understanding of various security and privacy functions which, when used with such sites, can become extremely complicated (just ask Mozilla and have a look at just their Content-Security-Policy setup. It’s certainly not ideal as MDN existed prior to certain devs scripting the CSP along with other HTPP headers.
Taking the time to learn how to code a static html site is worth it in the end. Additions & alterations to your site become as easy as a few lines of code. If said code includes scripts and/or stylesheets, adding to your CSP - using either SRI hashes or Strict-Dynamic nonces or hashes - becomes a breeze and takes but a few extra minutes.
You then create a from scratch site using the knowledge that you, not SSG generators’ devs, know and understand how to use in your future creations. Moreover, and best of all, you will be able to rest assured that your site(s) visitors feel secure and know their privacy is assured due to you, the site’s owner, actually caring about such quaint notions, unlike most of the web as it now exists. There’s no better feeling. We all must play our part to create an internet that ensures security and privacy for all, because as we all know, as it now exists, the internet is anything but private and secure.
Some resources to take advantage of:
(Mozilla’s Observatory, first in the list. has direct links to all other above sites.)
And, of course, Netlify via a well scripted
_headers file defining security and privacy settings. I’m personally very impressed by the ease with which Netlify not only gives these tools to site owners but also how utterly simple the layout of either file is to write.