From 1b79434f3dab0953e93d95958fe46f1818f8df79 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Mon, 2 Jan 2023 16:37:35 +0100
Subject: [PATCH] fix unpublished post static

---
 app/views/admin/communication/websites/posts/static.html.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/admin/communication/websites/posts/static.html.erb b/app/views/admin/communication/websites/posts/static.html.erb
index f354bcfa1..85218433f 100644
--- a/app/views/admin/communication/websites/posts/static.html.erb
+++ b/app/views/admin/communication/websites/posts/static.html.erb
@@ -1,6 +1,6 @@
 ---
 title: "<%= @about.title %>"
-date: "<%= @about.published_at.iso8601 %>"
+date: "<%= @about.published_at&.iso8601 %>"
 <%= render 'admin/application/static/permalink' %>
 <%= render 'admin/application/static/design', full_width: false, toc_offcanvas: false %>
 <% if @about.pinned %>
-- 
GitLab