From e9a4891c4c6b5102545d8a19bfa1ed3595900ae8 Mon Sep 17 00:00:00 2001
From: pabois <pierreandre.boissinot@noesya.coop>
Date: Thu, 19 May 2022 15:12:47 +0200
Subject: [PATCH] permalinks with diplomas

---
 .../communication/websites/configs/permalinks/static.html.erb  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/views/admin/communication/websites/configs/permalinks/static.html.erb b/app/views/admin/communication/websites/configs/permalinks/static.html.erb
index 87e03483a..3655dd3f5 100644
--- a/app/views/admin/communication/websites/configs/permalinks/static.html.erb
+++ b/app/views/admin/communication/websites/configs/permalinks/static.html.erb
@@ -13,6 +13,9 @@ organizations:  <%= @website.special_page(:organizations).path_without_language
 <% if @website.has_authors? %>
 authors:        <%= @website.special_page(:persons).path_without_language %>:slug/<%= @website.special_page(:communication_posts).slug %>/
 <% end %>
+<% if @website.has_education_diplomas? %>
+diplomas:    <%= @website.special_page(:education_diplomas).path_without_language %>:slug/
+<% end %>
 <%# ces paths complémentaires sont nécessaires à Hugo mais on ne les utilise pas %>
 <% if @website.has_administrators? %>
 administrators: <%= @website.special_page(:persons).path_without_language %>:slug/roles/
-- 
GitLab