Zine: A Static Site Generator Written in Zig
kristoff.it
kristoff.it
> The most prominent feature of Zine is that every file format it uses has been created from scratch in order to handcraft the content authoring experience.
Sadly, this part is more of a detractor for me. Using generic templating languages, markup languages, etc. means that I'm not locking my content in to the only SSG that supports SuperHTML, SuperMD, Ziggy etc.
I appreciate the enthusiasm and open sourcing this for others to learn from, good luck with the project!
Want to add logic to a HTML template? Say goodbye to syntax highlighting, autoformatting and any form of error checking.
Want to embed a video in markdown? Gotta put HTML in your content, the exact kind of thing you were trying to avoid by using Markdown in the first place.
That's a very shitty in-between situation that I personally wanted to get away from. I'm sure for people who don't stress too much about these points (maybe even just because they do less of this kind of work than I do), it's more valuable to leverage formats that they already know, but for me it's a death by a thousand cuts.
That said I loved everything I read. SuperMD, SuperHTML, everything is oozing inspiration in a good way. I see it as an exercise in stripping things down to their ergonomic core. Loved it.
[]($image.buildAsset('icon32.png'), {$image.buildAsset('icon64.png'), '2x'})Obviously very tailor-made for my website (https://world-playground-deceit.net/) but I plan on improving that part once I'm fully satisfied with it.
Not sure about what you mean by preview, but here's how I do it: build the website, copy the output directory somewhere, run `sed -E -i 's#(href|src)=("?)/#\1=\2file:///absolute/path/to/dst/#g' dst/*/*.html` and open a page as file in my web browser.
Zine looks super simple to understand and follow on the other hand.