From 5920e6fbb3ceac887f24354ed758eba4504e7382 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Mon, 11 Apr 2016 18:17:07 -0700 Subject: [PATCH] fix year --- server/harp_blog.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/harp_blog.rb b/server/harp_blog.rb index ed57cb5..287eab9 100644 --- a/server/harp_blog.rb +++ b/server/harp_blog.rb @@ -115,7 +115,7 @@ class HarpBlog else save_post(post) if options[:commit] - git_commit("create post '#{post.title}'", [year_index_path(post.year), post_path(post.dir)]) + git_commit("create post '#{post.title}'", [year_index_path("#{post.time.year}"), post_path(post.dir)]) end post end