diff --git a/app/views/admin/communication/website/configs/permalinks/static.html.erb b/app/views/admin/communication/website/configs/permalinks/static.html.erb index f25a6b99a7849b38fc650c5b97b0e41f6f78dd05..ea940c61321255d1a68a1ae7fc885a70290eddc9 100644 --- a/app/views/admin/communication/website/configs/permalinks/static.html.erb +++ b/app/views/admin/communication/website/configs/permalinks/static.html.erb @@ -1,22 +1,22 @@ <% if @website.has_communication_posts? %> -posts: <%= @website.special_page(:communication_posts).path_without_language %>/:year/:month/:day/:slug/ +posts: <%= @website.special_page(:communication_posts).path_without_language %>:year/:month/:day/:slug/ <% end %> <% if @website.has_communication_categories? %> -categories: <%= @website.special_page(:communication_posts).path_without_language %>/:slug/ +categories: <%= @website.special_page(:communication_posts).path_without_language %>:slug/ <% end %> <% if @website.has_persons? %> -persons: <%= @website.special_page(:persons).path_without_language %>/:slug/ +persons: <%= @website.special_page(:persons).path_without_language %>:slug/ <% end %> <% if @website.has_authors? %> -authors: <%= @website.special_page(:persons).path_without_language %>/:slug/<%= @website.special_page(:communication_posts).slug %>/ +authors: <%= @website.special_page(:persons).path_without_language %>:slug/<%= @website.special_page(:communication_posts).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/ +administrators: <%= @website.special_page(:persons).path_without_language %>:slug/roles/ <% end %> <% if @website.has_teachers? %> -teachers: <%= @website.special_page(:persons).path_without_language %>/:slug/programs/ +teachers: <%= @website.special_page(:persons).path_without_language %>:slug/programs/ <% end %> <% if @website.has_researchers? %> -researchers: <%= @website.special_page(:persons).path_without_language %>/:slug/articles/ +researchers: <%= @website.special_page(:persons).path_without_language %>:slug/articles/ <% end %>