this post was submitted on 20 Apr 2024
39 points (97.6% liked)

Rust Programming

8186 readers
3 users here now

founded 5 years ago
MODERATORS
 

I just released v0.1.0 of hinoki, my static site generator :)
The README.md should explain usage, and you can also see how I ported my blog to it here.

This project started because I'm not entirely happy with Zola, which does not support customizing page paths much (e.g. /year/month/day/title/index.html style paths) and made some other design decisions that I wanted to explore alternatives to.

You can download the binary from GitHub releases, or cargo install it from git.

Any feedback is appreciated, here or in the GitHub issues!

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 7 months ago (1 children)

Zola supports this? I've never heard of it and can't find anything about it in the docs. I'd be interested to find out how it's implemented there, but it does seem a bit too complex for my liking on first thought.

[โ€“] [email protected] 1 points 7 months ago

I'm not sure how they implemented it either but it must be tricky (or maybe it's easy to implement but hard to make it fast?) if Hugo still doesn't have support for it. I did a search in the Zola repo on github for "backlink" and these are the files that showed up.

You have to link pages using the Zola way (starting with a @/), and all pages and posts have to live under the /content/ folder. So if you had page1.md and page2.md and wanted to link from one to the other, in page2 you'd have [Page 1](@/page1.md). On page2 you'd see the normal link, and on page1 you'd see that page2 links to it.