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

oops fix post publish

parent 3c68d51c
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ class Communication::Website::Post < ApplicationRecord
end
def git_path(website)
"content/posts/#{published_at.year}/#{published_at.strftime "%Y-%m-%d"}-#{slug}.html" if published_at
"content/posts/#{published_at.year}/#{published_at.strftime "%Y-%m-%d"}-#{slug}.html" if published && published_at
end
def git_dependencies(website)
......
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