diff options
Diffstat (limited to 'src/posts/fs_post.rs')
-rw-r--r-- | src/posts/fs_post.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posts/fs_post.rs b/src/posts/fs_post.rs index e767803..f83ff4a 100644 --- a/src/posts/fs_post.rs +++ b/src/posts/fs_post.rs @@ -14,7 +14,7 @@ impl FsPost { impl Post for FsPost { fn get_title(&self) -> &str { - self.file.file_name().unwrap().to_str().unwrap() + self.file.file_stem().unwrap().to_str().unwrap() } fn get_article(&self) -> Cow<str> { |