TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Zine: A Static Site Generator Written in Zig

61 pointsby kristoff_it8 months ago

5 comments

22c8 months ago
Interesting project..<p>&gt; 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.<p>Sadly, this part is more of a detractor for me. Using generic templating languages, markup languages, etc. means that I&#x27;m not locking my content in to the only SSG that supports SuperHTML, SuperMD, Ziggy etc.<p>I appreciate the enthusiasm and open sourcing this for others to learn from, good luck with the project!
评论 #41589460 未加载
评论 #41587848 未加载
tristan9578 months ago
The most interesting part of this project to me is that the templating is valid html. What bothers me about Hugo is that there is no language server that works well with it, at least that I know of. This might be interesting to experiment with.
sionisrecur8 months ago
Reusing the markdown link syntax is interesting. I wonder if it can be extended to allow for extra attributes, for example srcset. The parenthesis make it look like a function so maybe adding more arguments, something like:<p><pre><code> []($image.buildAsset(&#x27;icon32.png&#x27;), {$image.buildAsset(&#x27;icon64.png&#x27;), &#x27;2x&#x27;})</code></pre>
a-french-anon8 months ago
Fun thing, I finished something quite similar in a week: <a href="https:&#x2F;&#x2F;git.sr.ht&#x2F;~q3cpma&#x2F;make-website" rel="nofollow">https:&#x2F;&#x2F;git.sr.ht&#x2F;~q3cpma&#x2F;make-website</a> ; down to the page language using the macro DSL of <a href="https:&#x2F;&#x2F;github.com&#x2F;ruricolist&#x2F;spinneret">https:&#x2F;&#x2F;github.com&#x2F;ruricolist&#x2F;spinneret</a> via runtime compilation of the (compile nil (lambda () ...)) kind. It&#x27;s just HTML, other than that.<p>Obviously very tailor-made for my website (<a href="https:&#x2F;&#x2F;world-playground-deceit.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;world-playground-deceit.net&#x2F;</a>) but I plan on improving that part once I&#x27;m fully satisfied with it.
评论 #41600342 未加载
smusamashah8 months ago
This looks so nice. My site is currently Hugo but I can not stand its syntax. Its painful. I am not a Rust or Go or whatever templating language its using guy. I have been thinking of updating my site, but I feel stuck.<p>Zine looks super simple to understand and follow on the other hand.