From 3afce9f55d0d27d7f6ff016bd920cab91a11e2b3 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Thu, 24 Feb 2022 18:00:11 +0100 Subject: [PATCH] oops fix post publish --- 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 6f810eaea..0cd59f91a 100644 --- a/app/models/communication/website/post.rb +++ b/app/models/communication/website/post.rb @@ -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) -- GitLab