b9be21156ddfd6c0718e2de29dc548e384d55fc6
- src/templates.rs: Add depth parameter to all template functions. Add relative_prefix() helper that generates "./", "../", "../..", etc. All hrefs now use relative paths instead of absolute. Unit test for relative_prefix() added. - src/main.rs: Pass depth to templates based on output location. Root=0, blog index/pages=1, blog posts=2. Navigation works correctly when viewed via file:// protocol. Site is now IPFS-compatible.
Description
Languages
Rust
68.7%
Scheme
19.1%
CSS
11.7%
Nix
0.5%