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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user