diff --git a/app/models/communication/website/post.rb b/app/models/communication/website/post.rb index 536b20cfff2d41c0ff885126c199c66f0b105987..dd723da99ed0df46e3529fe9a0dd6deb5c907665 100644 --- a/app/models/communication/website/post.rb +++ b/app/models/communication/website/post.rb @@ -43,7 +43,7 @@ class Communication::Website::Post < ApplicationRecord validates :title, presence: true def github_path_generated - "_posts/#{published_at.strftime "%Y/%m"}/#{published_at.strftime "%Y-%m-%d"}-#{slug}.html" + "_posts/#{published_at.year}/#{published_at.strftime "%Y-%m-%d"}-#{slug}.html" end def to_jekyll