Skip to content
Snippets Groups Projects
Commit 18821a2b authored by Arnaud Levy's avatar Arnaud Levy
Browse files

year only

parent 6ad2cebe
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment