Live data from Hacker News

Zola: A fast static site generator in a single binary

getzola.org

61–70 of 177 posts

Re: Zola: A fast static site generator in a single binary

#61
post #7

I 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…

Personally, all I want is a full proper programming language in my templating. Every templating language ends up being irritatingly limited, for me at least.

JSX seems to fit that bill, and many other languages have a comparable library.

Re: Zola: A fast static site generator in a single binary

#62
post #8

Jamstack lists 322 static site generators plus there are probably many homemade solutions using standard unix tools etc. I am wondering if there are any unique selling points not yet covered by less than a dozen projects. Fast compilation and zero dependencies seems no fit to that category. Do not get me wrong, I really appreciate the creativity and variety of open solution, I am just wondering what it needs to get h…

> any unique selling points

Super fast. Simple for most usecases. Integrated feed support (Atom). Good-enough translations system. These points may be true for other SSGs as well, but they're personally why i ended up using zola.

Re: Zola: A fast static site generator in a single binary

#63
I run a few (well, one published, one in the works, a couple one-offs for student showcases) websites built with Zola. It's a great, little, simple piece of software.

What I like:

    * Already supports the tooling I enjoy → SCSS out of the box, django/jade-like template engine (Terra, its sister project), markdown w/ TOML frontmatter
    * Fast → build times are almost instant, dev server builds to memory and does live-reload
    * Gets out of your way → it doesn't do more than it can, yet provides enough to work
    * Builds a search index for client-side searching if needed
    * Single Binary → I can pass the executable around with the repo and installation and environments are not an issue (ruby and python are painful for part-time developers it seems, at least with my non-developer academic peers).
I like that it provides a simple base to build on. I have one site that uses webpack to generate bundles for a couple JS files to allow for modern JS (babel) → all I have to use webpack for is JS, Zola handles the rest.

I migrated our Django theme for our previous site in an afternoon. I've found that those I work with often don't really understand how formatting in a CMS will apply in the published result, and often have to go back in and edit their pages for conformance → If I have to touch it anyway, I'd rather do it in markdown myself, something I enjoy using.

I have students/interns who have picked up markdown faster than any other markup or CMS. I've tried mezzanine [^meh] and wagtail [^excellent, but heavy for our brochure-ware] in python, wordpress is a pain [^either too flexible, or not flexible enough, research interns don't easily see how complex theme interactions occur] and some others like cockpit [^neat but flexible to a fault, yet too rigid for how free-form folks want to interact with it]. Markdown is translatable, and usable in other tools: it's a great common denominator with a very low bar for entry. Students continue to use it after first interacting with it on these projects after they've left.

What I'm missing:

    * a way to build from an API endpoint instead of markdown, i.e.: point to an endpoint to get the section list, build children as pages. Then I could use content from a postgrest instance, or build it from a list of remote markdown files... (no, I haven't really thought this through very well)
YMMV.

Re: Zola: A fast static site generator in a single binary

#64
post #7

I 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…

Personally, all I want is a full proper programming language in my templating. Every templating language ends up being irritatingly limited, for me at least.

racket scribble might be of interest to you. https://docs.racket-lang.org/scribble/

Re: Zola: A fast static site generator in a single binary

#65
post #16

What is stopping someone writing an offline GUI for a static site generator? I think that would help a bit with non-technical adoption.

Nothing is actively stopping it. In fact a lot of people would strongly appreciate it, maybe even contribute. I would really love to see something like that: - local-first CMS with a strong emphasis on folders/files - multiple DVCS integrations (git, mercurial, pijul) with commit signatures (PGP) - support for forge APIs and email-based workflow to simplify the cooperative PR/MR/patch process - strong translations su…

*Take the following with a grain of salt. I've not used this product in production as of yet. I just started investigating it a few weeks ago.*

Statamic sort of fits in this discussion. It's a flat file cms that is by default deployed similarly to wp, but it has 2 distinct use cases that separate it a bit.

1. you can use their ssg module to do ssg things and just use their cms as, well, the cms. you can do this locally and just push the output to your favorite web server.

2. if you are familiar with laravel development, you can drop it in an existing laravel application with minimal effort.

https://statamic.com/

Re: Zola: A fast static site generator in a single binary

#66
post #7

I 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…

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.

Re: Zola: A fast static site generator in a single binary

#67
post #7

I 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…

> The other thing that tends to happen with SSGs is that it can be a lot more fun to play around with the tech than actually writing blog posts!

This has been my experience also[0]. Instead of writing I wound up a side quest to see if I could get Project Mallard[1] to do what I wanted.

[0] https://twitter.com/jacques_chester/status/13440340126086184...

[1] http://projectmallard.org/

Re: Zola: A fast static site generator in a single binary

#68

I keep trying to return to Zola but it seems I have to do much of the work there myself. It's kind of the other end of the spectrum for me: too much freedom! I wouldn't mind some convention-over-configuration there. Also the templating language isn't at all intuitive to me but it might be just me being stupid. But I also want multi-lingual articles and article revisions so maybe Zola is not for me. I absolutely love…

> I wouldn't mind some convention-over-configuration there.

I strongly agree. I started some of that with my theme https://tildegit.org/southerntofu/zola-water and i'd be pleased to cooperate on "standard" conventions across themes so we can swap themes easily without having to reconfigure/reorganize everything.

> But I also want multi-lingual articles and article revisions so maybe Zola is not for me.

zola supports translations, though the details of that are being reworked. Revisions are not supported so far, but is technically possible by building your site in a specific output folder for every commit (or something along those lines).

Linking across revisions, as it is not supported by zola would require either an external component (eg. in an iframe) or a build script that rewrites output pages to be aware of their revisions. Though implementing a simple git interface to zola to expose commit names involving a specific page would not be hard (managing the different revisions as single pages, like is done for translations, would be more complex).

> I think Zola would get much more traction if it had several typical cases covered in the tutorials

Agreed. There is definitely a lot to improve on the website/documentation. If you have a more detailed proposal and/or would like to get involved, feel free to talk about it in the community forums https://zola.discourse.group/

Re: Zola: A fast static site generator in a single binary

#69
On the topic of SSGs, is anyone using styx[1]?

As a keen NixOS user, I love the idea of configuring my site with nix and embedding nix exprs in markdown. However, I'm unsure whether the project is still active, or if the whole thing was more of an experiment. The repo[2] seems a little quiet, but the documentation is extensive and great considering! I wonder if the author just considers it complete? Curious to here experiences from anyone who has had a play.

[1]: https://styx-static.github.io/styx-site/ [2]: https://github.com/styx-static/styx/

Re: Zola: A fast static site generator in a single binary

#70

I tried Zola and liked the speed and simplicity. However support for its templating language is scarce and I'm not super keen on writing extensions in Rust. I have also looked at Hugo, which is determined to uphold evil and suffering by using Go's horrible templating minilanguage; Nanoc, which is cool but at times inscrutable and perhaps a little too obscure; now I'm playing with Jekyll. In short I am doing everythin…

> support for its templating language is scarce Hello, i would say there's a few missing template features in Zola (especially hashmap literals/functions) but i don't find it scarce. Could you elaborate with your painpoints so they can be addressed for others as well? Zola is constantly evolving for the better, and the community forums are also a good place to exchange feedback/criticism

The Tera template language is not in wide use, so multi-language integrations with HTML were non-existent when I checked. That's tremendously inconvenient.
Post reply on HN