From 3ba1d8b78b6d4abafbbd983b85c89ba5a5742a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Tue, 11 Apr 2023 14:53:30 +0200 Subject: [PATCH] fix --- .../admin/communication/blocks/templates/posts/_static.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/communication/blocks/templates/posts/_static.html.erb b/app/views/admin/communication/blocks/templates/posts/_static.html.erb index c88c34d54..00932a5d2 100644 --- a/app/views/admin/communication/blocks/templates/posts/_static.html.erb +++ b/app/views/admin/communication/blocks/templates/posts/_static.html.erb @@ -1,4 +1,4 @@ -<% if block.template.category %> +<% if block.template.mode == 'category' && block.template.category %> category: "<%= block.template.category.path %>" <% end %> layout: <%= block.template.layout %> -- GitLab