diff --git a/Cargo.toml b/Cargo.toml index a2f7b53..bae8e66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "portfolio" -version = "0.1.1" +version = "0.2.1" edition = "2021" [lib] diff --git a/markdowns/posts/test.md b/markdowns/posts/test.md index 93c16c5..fea2c17 100644 --- a/markdowns/posts/test.md +++ b/markdowns/posts/test.md @@ -4,6 +4,7 @@ title: Testing layout date: 2023-11-26 description: Testing the layout of the site. project_link: none +draft: true --- # Heading 1 diff --git a/src/app/models/post.rs b/src/app/models/post.rs index 1a476ec..f9a517a 100644 --- a/src/app/models/post.rs +++ b/src/app/models/post.rs @@ -7,6 +7,7 @@ pub struct PostMetadata { pub date: String, pub description: String, pub project_link: String, + pub draft: bool } #[derive(Clone, Serialize, Deserialize, Debug)] diff --git a/src/app/pages/posts.rs b/src/app/pages/posts.rs index a632c75..4c80768 100644 --- a/src/app/pages/posts.rs +++ b/src/app/pages/posts.rs @@ -73,6 +73,19 @@ pub fn PostElement() -> impl IntoView { view! { <>