Timothy DeHerrera b9be21156d feat: implement relative paths for IPFS/decentralization
- 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.
2026-01-24 21:22:03 -07:00
2026-01-24 18:17:00 -07:00
2022-11-01 15:18:00 -06:00
Description
No description provided
MIT 14 MiB
Languages
Rust 68.7%
Scheme 19.1%
CSS 11.7%
Nix 0.5%