add command for creating a new page

This commit is contained in:
zyl 2024-11-08 19:20:25 -08:00
parent 0d9c48db40
commit b1a6e052e1
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
4 changed files with 53 additions and 4 deletions

View file

@ -107,7 +107,7 @@ impl SiteConfig {
pub struct TemplateMetadata {}
/// Struct for the front matter in pages.
#[derive(Debug, Default, Deserialize)]
#[derive(Debug, Default, Serialize, Deserialize)]
pub struct PageMetadata {
/// The page's title.
pub title: Option<String>,