From 18821a2b557321414064a6e0ef6d2cc0c0fca0d8 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Mon, 25 Oct 2021 18:08:54 +0200
Subject: [PATCH] year only

---
 app/models/communication/website/post.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/communication/website/post.rb b/app/models/communication/website/post.rb
index 536b20cff..dd723da99 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
-- 
GitLab