5 ms·
Dumb question, but why do you need a static site generator vs just writing an html file?
by watt3rpig 7y ago
Dumb question, but why do you need a static site generator vs just writing an html file?
- iamgopal 7y agoEvery static site generator website has explanation for this.
- watt3rpig 7y agoI went to both Hugo and Jekyll sites. I did not see an explanation. Maybe I will try to build something and then I will understand.
- MildlySerious 7y agoBasically, template compiling. Not having to copy/paste reusable parts around, which is error prone and time consuming. Depending on the tool there's other stuff, like generating sitemaps, optimizing images, CSS treeshaking and other optimizations, all the good stuff that would otherwise happen manually or not at all.
- watt3rpig 7y agoAh thanks for the explanation.
- libria 7y agoSay you write 10 blog articles. In HTML that's 10 files with some trivial cut & paste. In jekyll that's 10 markdown files and 1 HTML template. Equal time sink for both tasks. Now you want to add Disqus comments to your blog. In HTML you edit 10 files. In jekyll that's probably 1 plugin. Same with adjusting theme, fonts, recent posts, generating RSS feed, recent Tweets, ads.
- anderspitman 7y agoBecause HTML doesn't have a way to import another piece of HTML.