From e3000b49de4ad0fa921c5d6e485a7e92edf1f060 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Wed, 17 Jan 2024 09:22:08 +0100 Subject: [PATCH] Fix categories order in static --- .../admin/communication/websites/agenda/events/static.html.erb | 2 +- app/views/admin/communication/websites/posts/static.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/communication/websites/agenda/events/static.html.erb b/app/views/admin/communication/websites/agenda/events/static.html.erb index b810d8177..df1dedfe0 100644 --- a/app/views/admin/communication/websites/agenda/events/static.html.erb +++ b/app/views/admin/communication/websites/agenda/events/static.html.erb @@ -14,7 +14,7 @@ weight: <%= @about.distance_in_days %> <%= render 'admin/application/summary/static' %> <% if @about.categories.any? %> events_categories: -<% @about.categories.each do |category| %> +<% @about.categories.ordered.each do |category| %> - "<%= category.slug %>" <% end %> <% end %> diff --git a/app/views/admin/communication/websites/posts/static.html.erb b/app/views/admin/communication/websites/posts/static.html.erb index 6430ba49e..84fa2a647 100644 --- a/app/views/admin/communication/websites/posts/static.html.erb +++ b/app/views/admin/communication/websites/posts/static.html.erb @@ -15,7 +15,7 @@ authors: <% end %> <% if @about.categories.any? %> posts_categories: -<% @about.categories.each do |category| %> +<% @about.categories.ordered.each do |category| %> - "<%= category.slug_with_ancestors_slugs %>" <% end %> <% end %> -- GitLab