3 ms·
What are good ways of managing your content with a static website? For example, say you want a single index.html file, with each article contained in a separat
by SkyMarshal 7y ago
What are good ways of managing your content with a static website?
For example, say you want a single index.html file, with each article contained in a separate content file - "blogpost01.html", "blogpost02.html", etc. - that you somehow include in the <body></body> of your index file?
Is there any way to do that with a static site, or something similar where your content is separated out into individual files?
- hunter2_ 7y agoUse a static site generator. The parts you touch for authoring posts will end up "included" during the build step, producing files that you don't touch which each redundantly contain the common markup. Or with an SPA generator like Gatsby, there wouldn't even be any redundancy (but client side JS is required).
- gravitas 7y agoOne example of the above is PyKwiki: https://github.com/nullism/pykwiki https://github.com/nullism/pykwiki