diff options
| author | Fuwn <[email protected]> | 2026-02-18 05:35:53 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-18 05:35:53 -0800 |
| commit | f6b7e526352eaa2d7a83423097a4a0927b7b4824 (patch) | |
| tree | 7ef2a1025ae6b178b80dc5c99c8e5ef7a24d0b2a /src/modules/blog/config.rs | |
| parent | refactor(modules): Remove skills route (diff) | |
| download | locus-f6b7e526352eaa2d7a83423097a4a0927b7b4824.tar.xz locus-f6b7e526352eaa2d7a83423097a4a0927b7b4824.zip | |
feat(blog): Add canonical and alias slug routing from Notion Slugs with title fallback
Diffstat (limited to 'src/modules/blog/config.rs')
| -rw-r--r-- | src/modules/blog/config.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/blog/config.rs b/src/modules/blog/config.rs index 37dbb9d..f1cf99f 100644 --- a/src/modules/blog/config.rs +++ b/src/modules/blog/config.rs @@ -1,6 +1,7 @@ #[derive(Clone)] pub struct BlogCategory { pub title: String, + pub slugs: Vec<String>, pub description: Option<String>, pub priority: u8, pub notion_id: String, @@ -9,6 +10,8 @@ pub struct BlogCategory { #[derive(Clone)] pub struct BlogPost { pub title: String, + pub slugs: Vec<String>, + pub notion_id: String, pub description: Option<String>, pub author: Option<String>, pub created_raw: Option<String>, |