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.

Show HN: Blades – fast static site generator written in Rust

146 pointsby marosgregoover 4 years ago

11 comments

chrsstrmover 4 years ago
I&#x27;m going to try this out at some point this week, but the one item that makes me pause: the sitemap. Hugo is fast, but it doesn&#x27;t do incremental builds. Once you get to the point where you&#x27;re publishing 10&#x27;s of thousands of posts, Hugo starts to get real slow (like 20 minutes to build, even after enabling template caching), so an increase in speed during build time is welcome. But once you get to 50K posts you realize that Hugo doesn&#x27;t follow Google&#x27;s convention to break your sitemap into separate files with an index map[0]. Hugo doesn&#x27;t have a handler for this and as of now I haven&#x27;t figured out how to modify the sitemap compilation process to be compliant (not like I&#x27;ve tried too hard, I&#x27;m not native with Go and the code isn&#x27;t clear to me where the sitemap is being built). If Blades would handle the sitemap issue for me without needing a plugin or modification, that would be huge for a lot of people on the Hugo community boards.<p>[0] <a href="https:&#x2F;&#x2F;support.google.com&#x2F;webmasters&#x2F;answer&#x2F;183668?hl=en" rel="nofollow">https:&#x2F;&#x2F;support.google.com&#x2F;webmasters&#x2F;answer&#x2F;183668?hl=en</a>
评论 #24763434 未加载
评论 #24762234 未加载
评论 #24763703 未加载
评论 #24773117 未加载
评论 #24762244 未加载
cipherzeroover 4 years ago
This is neat! Good work. Was any of this inspired by Zola? <a href="https:&#x2F;&#x2F;www.getzola.org&#x2F;documentation&#x2F;getting-started&#x2F;overview&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.getzola.org&#x2F;documentation&#x2F;getting-started&#x2F;overvi...</a><p>I’ve used Zola and love the build speed and power that it has. My only real complaint is common mark as the markdown engine. I prefer the tera&#x2F;jinja2-esque template syntax over ramhorn&#x2F;mustache-esque that’s used here.<p>I’ll have to try and port a theme to blades to give it a fair assessment.
评论 #24763512 未加载
AnonCover 4 years ago
It would be great if every new static site generator had a page that has comparisons with the ones that came before...at least for the ones in the same language and same deployment model (or dependencies). After going through this site, I was left wondering (as someone who hasn&#x27;t used Rust based SSGs) what the differences are between Blades, Zola and Cobalt.<p>The site says that it&#x27;s a hobby project, but additional marketing with comparisons is always useful to get more eyes (and possibly more contributors too).
forgotmypw17over 4 years ago
Nice work, thank you for sharing!<p>Great job on the 386 theme.<p>Documentation is understandable and easy to dive into.<p>Great design, and rather complete feature-set.<p>TOML looks like a great format, too.
bacondude3over 4 years ago
All I want is a static site generator that sits in an executable file in my project&#x27;s directory and doesn&#x27;t require any dependencies so that I can run `.&#x2F;ssg build` and have all of my Markdown files interpolated into my template files and put in their own directory. I don&#x27;t want to have to install all of the dependencies for Ruby or Hugo or Blades, cool as this project looks. Are there any SSGs that fill that niche?<p>(A Python executable would be fine since pretty much every Linux computer has Python, but I don&#x27;t want to have to deal with pip).
评论 #24762173 未加载
评论 #24762498 未加载
评论 #24762118 未加载
评论 #24762147 未加载
评论 #24765674 未加载
评论 #24762142 未加载
评论 #24763441 未加载
评论 #24762294 未加载
评论 #24762203 未加载
higerordermapover 4 years ago
Off topic:<p>Any aggregated lists of sufficiently mature projects in &quot;new&quot; languages (rust, nim etc)?<p>That would be helpful for people searching for some idiomatic code.<p>Also to evaluate performance etc.. characteristics of the language.
hendryover 4 years ago
I wish for a static site generator with back links <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=9aM3JzBJ6qo" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=9aM3JzBJ6qo</a>
mhdover 4 years ago
Another static-binary static-site generator I&#x27;ve recently discovered is Soupalt[1]. Which adds OCaml to the list of languages for that kind of thing, with extensibility via Lua. Has a a more unopinionated approach to thing, instead of just markdown expansion, it&#x27;s also a generic HTML postprocessor.<p>[1]: <a href="https:&#x2F;&#x2F;soupault.neocities.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;soupault.neocities.org&#x2F;</a>
评论 #24763481 未加载
marosgregoover 4 years ago
Blades author here. Just added it to AUR for more convenient install for people who are not Rust developers: <a href="https:&#x2F;&#x2F;aur.archlinux.org&#x2F;packages&#x2F;blades-bin&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aur.archlinux.org&#x2F;packages&#x2F;blades-bin&#x2F;</a>
woileover 4 years ago
Hey super nice! I would add some more info to the docs: formats supported (md, rst?, etc), if it is also a blog generator I would include that info. Looks pretty awesome and simple, thanks for sharing!
评论 #24763466 未加载
twargeover 4 years ago
Cobalt<p><a href="https:&#x2F;&#x2F;cobalt-org.github.io" rel="nofollow">https:&#x2F;&#x2F;cobalt-org.github.io</a>
评论 #24761720 未加载
评论 #24762409 未加载
评论 #24762065 未加载