News for hackers. Stuff that matters.
Re:Gridsome – A Vue.js static site generator by watt3rpig on Friday October 18, 2019 @10:23AM (#21291603)
Dumb question, but why do you need a static site generator vs just writing an html file?
Re:Gridsome – A Vue.js static site generator by libria on Friday October 18, 2019 @10:45AM (#21291799)
Say 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.

Re:Gridsome – A Vue.js static site generator by MildlySerious on Friday October 18, 2019 @10:26AM (#21291628)
Basically, 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.
Re:Gridsome – A Vue.js static site generator by watt3rpig on Friday October 18, 2019 @10:32AM (#21291693)
Ah thanks for the explanation.
Re:Gridsome – A Vue.js static site generator by anderspitman on Friday October 18, 2019 @12:18PM (#21292646)
Because HTML doesn't have a way to import another piece of HTML.
Re:Gridsome – A Vue.js static site generator by iamgopal on Friday October 18, 2019 @10:25AM (#21291620)
Every static site generator website has explanation for this.
Re:Gridsome – A Vue.js static site generator by watt3rpig on Friday October 18, 2019 @10:31AM (#21291676)
I 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.