I'm using Hugo, but was looking at Zola earlier today. It's great to see that they're looking to support next-generation image formats. They're not in Hugo, as a requirement seems to be that dependencies are all fully written in Go, no use of bindings. It's a sensible decision from a maintenance perspective, but still unfortunate. What Hugo does have, and for which I couldn't find an alternative for in Zola, is somet…
> What Hugo does have, and for which I couldn't find an alternative for in Zola, is something akin to `esbuild` that can build and bundle JavaScript and TypeScript. Is there some way to do this with Zola or does one need to setup a separate build step for that with e.g. `swc`? Not right no. My issue with that is usually people that want a JS build system will want webpack, loaders and other JS dependencies to also wo…
Zola: A fast static site generator in a single binary
121–130 of 177 posts
Re: Zola: A fast static site generator in a single binary
#122Re: Zola: A fast static site generator in a single binary
#123Re: Zola: A fast static site generator in a single binary
#124Probably not to everyone's tastes though :D
Re: Zola: A fast static site generator in a single binary
#125I use Hugo for projects, it’s plenty powerful and easy to automate with data. For personal stuff, I use org mode. It’s more free form and provides just enough publishing features. SSGs seems like popular bikeshedding matter.
I tried Org Mode the other day and gave up when Emacs didn't allow me to edit an in-place SQL fragment with some cryptic error that you can't edit it in-line, so had to use a keybind to open a new buffer in order to be able to edit something that in Markdown is as as simple as triple backticks, the word "sql", the SQL code, and then another block of triple backticks. Am I missing something? Org Mode is always so glor…
Thanks to some investigative work from Doom Emacs people[3][4], I have found that my issue was fixed by simply installing the sql-indent package. Of course you would need to make sure these settings are set to true to enable tab acting according to native mode in source code blocks:
(setq org-src-tab-acts-natively t)
(setq org-src-preserve-indentation t)
(setq org-src-fontify-natively t)
And yes, I wasn't amused by this. I had another problem with shell mode indentation in org source blocks as well. That said, while the lack of cohesion due to decentralised nature of Emacs development occasionally surfaces like this, I think it would be unfair to not mention that org-mode when not buggy - which is more often than not - makes a lot of great features accessible. For instance, it automatically connects to Postgres, runs my query fragment, and populates an org-mode table (which are awesome) with the resulting output - I find this feature invaluable.Oh and if you are a Spacemacs user, perhaps give Doom Emacs a try.
[1] https://github.com/alex-hhh/emacs-sql-indent
[2] https://github.com/emacs-mirror/emacs/blob/master/etc/NEWS.2...
Re: Zola: A fast static site generator in a single binary
#126Re: Zola: A fast static site generator in a single binary
#127Earlier quoted context omitted.
I tried Org Mode the other day and gave up when Emacs didn't allow me to edit an in-place SQL fragment with some cryptic error that you can't edit it in-line, so had to use a keybind to open a new buffer in order to be able to edit something that in Markdown is as as simple as triple backticks, the word "sql", the SQL code, and then another block of triple backticks. Am I missing something? Org Mode is always so glor…
I suspect I encountered the same bug (in vanilla Emacs). It seems in Emacs 27 they introduced support for sql-indent-mode[1][2] which is not shipped by default but is in elpa. However there is a hook that checks if that package is installed, if so then loads it by default. It seems when not installed, somehow said hook messes things up in org-mode. Thanks to some investigative work from Doom Emacs people[3][4], I hav…
As for Doom Emacs, I am mentally way too fatigued by learning new tools almost every day. :(
I hear that it can be kind of like Spacemacs but it requires quite a bit more manual management which I am not a fan of. Do you have any experience confirming or refuting this impression of mine.
Very thankful for the links, I'm currently going through them.
Re: Zola: A fast static site generator in a single binary
#128I though this was about the wedding registry site at first. Anyway, I liked this line from the Github: > Hugo gets ehh for the template engine because while it is probably the most powerful template engine in the list (after Jinja2) it personally drives me insane, to the point of writing my own template engine and static site generator. Yes, this is a bit biased. This seems to be the life cycle of static site generat…
Perhaps we need a meta ssg. An ssgg if you will. Perhaps a dsl for specifying ssgs.
Re: Zola: A fast static site generator in a single binary
#129I though this was about the wedding registry site at first. Anyway, I liked this line from the Github: > Hugo gets ehh for the template engine because while it is probably the most powerful template engine in the list (after Jinja2) it personally drives me insane, to the point of writing my own template engine and static site generator. Yes, this is a bit biased. This seems to be the life cycle of static site generat…
Re: Zola: A fast static site generator in a single binary
#130Earlier quoted context omitted.
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.
There are legit services/plugins that do this with Wordpress for similar reasons.
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.