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…
We don't need to create one if we do not like Hugo. There are other SSGs like Hugo. Jekyll, Gatsby, etc., More here https://jamstack.org/generators/
Zola: A fast static site generator in a single binary
81–90 of 177 posts
Re: Zola: A fast static site generator in a single binary
#82Earlier quoted context omitted.
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 local…
Re: Zola: A fast static site generator in a single binary
#83I 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.
I think people their life harder when they go out of their way to avoid using PHP when really it is suited towards these types of problems.
Re: Zola: A fast static site generator in a single binary
#84Earlier quoted context omitted.
Perhaps we need a meta ssg. An ssgg if you will. Perhaps a dsl for specifying ssgs.
I believe Metalsmith [1] is trying that approach [1] https://metalsmith.io/
Re: Zola: A fast static site generator in a single binary
#85I 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…
It's something that feels highly generic, and so programmers jump on the chance to genericize it, but may not actually be that useful to have as a thing you can grab off the shelf
Re: Zola: A fast static site generator in a single binary
#86I 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-relo…
Sounds like remote content[0] might work for that?
0: https://www.getzola.org/documentation/templates/overview/#re...
Re: Zola: A fast static site generator in a single binary
#87Earlier quoted context omitted.
I do have suggestions and ideas but I feel like the author(s) are too busy and would appreciate code PRs much more. I mean, everyone can just talk and talk, right? > 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. Ah, I mean something much simpler than that. Imagine havin…
> I do have suggestions and ideas but I feel like the author(s) are too busy and would appreciate code PRs much more. That is correct, and it would be sad and damaging to believe exhausted volunteer maintainers should satisfy each and every desire of yours. However, stating expectations and desires respectfully is really helpful, especially when it is done in a precise manner so someone with time and energy can try t…
That's precisely why I am keeping silent. I worked on OSS myself and I don't want to come off as entitled. When I don't find the features that I would like I am mostly just shrugging and thinking to myself "either I'll research Zola's code base and make a good PR about it or I'll just keep my thoughts for myself because everyone can demand their own favorite features and it's not a productive use of the maintainers' time to read people's wishlists".
> However, stating expectations and desires respectfully is really helpful, especially when it is done in a precise manner so someone with time and energy can try to implement it.
True to an extent but I've been bitten by this in the past. My definition of respectful expectations is somebody's idea of entitlement even if I use language like "please consider this feature if you find yourself with some extra bandwidth in the future" and "I think this would help adoption because I know I am not the only one wanting it" and "this could help with SEO for this or that class of websites".
I learned that many OSS maintainers are tired and jaded -- and thus very jumpy as a result. So I just stopped giving suggestions after I have been slapped with "only PRs are welcome, otherwise we are not interested in theoretical discussions" several times in the past.
I realize Zola's maintainers might not be like this but there's something else to consider as well: it's mentally very tiring to have to use extremely watered-down diplomatic language (almost to the point of begging) just so you don't get on somebody's bad side if they had a crappy day.
I've had people rage at me for saying something as simple as: "feature X would be very helpful for workflow Y, would you consider adding it during the next 6 months?" (I guess the trigger was the implication of a deadline imposed on somebody's hobby work but the reaction was violent enough that I lost my desire to apologize.) And so it goes.
> We usually use a version control system (like git) for that.
I don't know the specifics but wouldn't that require Zola's Rust code to be aware of the GIT history of the website itself? Sounds like 5 tons of complexity loaded on top of 10kg worth of software, so to speak -- but I might be wrong.
I'd personally go for something like this:
/articles/
/reasons-to-choose-rust-in-2021/
+ 2020-01-31.html
+ 2020-02-28.html
+ 2020-03-05.html
why-i-left-ruby.html
/resume/
+ 2019-01-17.html
+ 2020-03-15.html
^ The above describes only 3 articles, one of each has no revisions (why-i-left-ruby.html), one of them has two revisions (resume) and another has three (reasons-to-choose-rust-in-2021).However, I am just talking out of my a$$ and can't comment if this is easy to integrate or what complexity and repercussions would it have to the otherwise free-form directory/file structure that Zola encourages.
I am simply illustrating what I would be after.
Re: Zola: A fast static site generator in a single binary
#88Earlier quoted context omitted.
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.
Well there is only a single Rust implementation for the moment, but tera templates are really similar to jinja (only difference i know is usage of named arguments in filters/functions). If i may, what's your usecase?
Re: Zola: A fast static site generator in a single binary
#89Earlier 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.
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
#90Earlier quoted context omitted.
Perhaps we need a meta ssg. An ssgg if you will. Perhaps a dsl for specifying ssgs.
I guess Racket’s proposal of language oriented programming isn’t so kooky after all.