Re:Zola: A fast static site generator in a single binary
by patrickmcnamara on Friday March 05, 2021 @10:58AM
(#26358247)
I think Iām just going to write a HTTP server for my website in Go, download the entire website with wget and host that statically. At least that way I can have any feature I want.
[ Parent
| on HN ]
Re:Zola: A fast static site generator in a single binary
by vidarh on Friday March 05, 2021 @11:35AM
(#26358771)
When I decided it wasn't worth keeping my personal site dynamic, I took my webapp and pulled out the core of it, and built a small little script that enumerated the possible urls and "requested them" from the old webapp and wrote them to files, turning the webapp into a static site generator.
Re:Zola: A fast static site generator in a single binary
by patrickmcnamara on Friday March 05, 2021 @01:00PM
(#26359821)
Yep, exactly. Wget can do this with the --recursive flag.
Re:Zola: A fast static site generator in a single binary
by michaelbuckbee on Friday March 05, 2021 @12:22PM
(#26359325)
There are legit services/plugins that do this with Wordpress for similar reasons.
Re:Zola: A fast static site generator in a single binary
by NotPavlovsDog on Friday March 05, 2021 @04:37PM
(#26362450)
I've been contemplating converting some legacy WP to static, but have not had the time to review available options.
With root access to the server / just good old wget, are there benefits to using the plugins/services? Which would you suggest? Would be grateful if you shared your experience.
Re:Zola: A fast static site generator in a single binary
by egeozcan on Friday March 05, 2021 @11:32AM
(#26358731)
Why not varnish then?
Re:Zola: A fast static site generator in a single binary
by patrickmcnamara on Friday March 05, 2021 @01:09PM
(#26359910)
Simply because a lot easier to host static files than it is to host a web server binary that has to be executed. I can just upload to GitHub Pages or AWS S3 and let them worry about the HTTP caching, TLS certs, upgrade to HTTP/3, etc.