For my website I wanted something based on those principles:
This site is generated by a script counting less than 150 lines of code. It is also a proof that shell scripting, although not very efficient, can be a viable way for generating small to medium websites. For frequently edited platforms like a wiki or a memex a more performant language would have been a better fit, but for editing a few pages once in a while a fish shell script is just enough.
All the images are optimized with optipng and jpegoptim, and resized to the section width (with full size versions on click). Videos are compressed to something like 500kb/s at HD resolution. About 70 lines of CSS are used for styling. Links don't open in a new tab by default, leaving the choice to the reader.
You can check out the site generator source code here.
2022 note: It's funny how nowaday websites are ditched for short link lists (linktrees) that then could grow so much to become a kind of index website like my own homepage.
Further readings: