Skip to content

Commit e6c5689

Browse files
Merge pull request #499 from Zexbe/fix-blog-url
Fix blog post urls
2 parents b65bdc5 + 0930b0b commit e6c5689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/posts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl Post {
7777
url.set_extension("html");
7878

7979
// this is fine
80-
let url = format!("{}/{}/{}/{}", year, month, day, url.to_str().unwrap());
80+
let url = format!("{:04}/{:02}/{:02}/{}", year, month, day, url.to_str().unwrap());
8181

8282
let published = build_post_time(year, month, day, 0);
8383
let updated = published.clone();

0 commit comments

Comments
 (0)