feat(templates): complete Tera migration, remove maud

Fully migrate from compile-time maud templates to runtime Tera:
- Rewrote main.rs to use TemplateEngine and discover_sections()
- Replaced hardcoded blog/projects with generic section loop
- Added Clone derive to Frontmatter and Content
- Fixed section_type dispatch via Section struct
- Deleted src/templates.rs, removed maud dependency

Users can now add sections without code changes.
This commit is contained in:
Timothy DeHerrera
2026-01-31 15:10:39 -07:00
parent 244b0ce85b
commit e200e94583
7 changed files with 103 additions and 435 deletions

View File

@@ -31,7 +31,7 @@ pub struct NavItem {
}
/// Parsed frontmatter from a content file.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Frontmatter {
pub title: String,
pub description: Option<String>,
@@ -50,7 +50,7 @@ pub struct Frontmatter {
}
/// A content item ready for rendering.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Content {
pub kind: ContentKind,
pub frontmatter: Frontmatter,