From fcb5a00b07a657b2bad39eda71e998298091e3cc Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Thu, 21 Oct 2021 17:44:30 +0200
Subject: [PATCH] fix

---
 app/views/admin/communication/website/pages/jekyll.html.erb | 2 +-
 app/views/admin/communication/website/posts/jekyll.html.erb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/views/admin/communication/website/pages/jekyll.html.erb b/app/views/admin/communication/website/pages/jekyll.html.erb
index 4dc6603a8..a3207c1db 100644
--- a/app/views/admin/communication/website/pages/jekyll.html.erb
+++ b/app/views/admin/communication/website/pages/jekyll.html.erb
@@ -2,7 +2,7 @@
 title: "<%= @page.title %>"
 permalink: "<%= @page.path %>"
 parent: "<%= @page.parent_id %>"
-description: "<%= @page.description %>"
+description: "<%= prepare_for_github @page.description %>"
 text: "<%= prepare_for_github @page.text %>"
 ---
 <%= @page.content_without_frontmatter.html_safe %>
diff --git a/app/views/admin/communication/website/posts/jekyll.html.erb b/app/views/admin/communication/website/posts/jekyll.html.erb
index cc5dd8f8e..6739f18c7 100644
--- a/app/views/admin/communication/website/posts/jekyll.html.erb
+++ b/app/views/admin/communication/website/posts/jekyll.html.erb
@@ -2,7 +2,7 @@
 title: "<%= @post.title %>"
 date: <%= @post.published_at %> UTC
 slug: "<%= @post.slug %>"
-description: "<%= @post.description %>"
+description: "<%= prepare_for_github @post.description %>"
 text: "<%= prepare_for_github @post.text %>"
 ---
 <%= @post.content_without_frontmatter.html_safe %>
-- 
GitLab