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