Files
sukr/Cargo.toml
Timothy DeHerrera d166e86435 feat: add TOML site config for metadata
- Cargo.toml: Add toml and serde dependencies
- site.toml: New config with title, author, base_url
- src/config.rs: SiteConfig struct with load() function
- src/error.rs: Add Error::Config for parse errors
- src/main.rs: Load site.toml, thread config and page paths
  through generators
- src/templates.rs: Use config.title in nav/titles,
  config.author in footer, config.base_url for canonical URLs.

All three config fields verified in generated HTML output.
2026-01-24 21:47:47 -07:00

27 lines
559 B
TOML

[package]
description = "Bespoke static site compiler for nrd.sh"
edition = "2024"
license = "MIT"
name = "nrd-sh"
version = "0.1.0"
[dependencies]
gray_matter = "0.2"
maud = "0.26"
pulldown-cmark = "0.12"
thiserror = "2"
walkdir = "2"
# Syntax highlighting
tree-sitter-bash = "0.23"
tree-sitter-highlight = "0.24"
tree-sitter-json = "0.24"
tree-sitter-rust = "0.23"
# CSS processing
lightningcss = "1.0.0-alpha.70"
# Config parsing
serde = { version = "1", features = ["derive"] }
toml = "0.8"