How I create static websites for tiny archives (2025)
14 points by matt-y
14 points by matt-y
A recommendation: maybe have a look at building some web components. You can make them fully self contained and use them as regular html dom elements. Cut down on reimplementing the same things in each individual site. Then you’re sites can stay focused on the content and you don’t have to redo simple things like lists or pagination or search boxes over and over again but you also don’t need to have npm and node_modules installed or any build of any kind.
I do something similar only for me it's dynamic sites I publish for others: my linkblog, Feditrends. So I regenerate the websites every hour or so but the publication is fully static.
For "Reduce repetition with JavaScript templates", could this also be done with web components? That boils down to JavaScript templates basically but with a little more HTML structure.