Skip to content

Commit

Permalink
Ordre des catégories (#2434)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudlevy authored Nov 19, 2024
1 parent 8fb3ae4 commit 9911aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/admin/application/categories/_static.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ about_categories.ordered.each do |category|
%>
taxonomies:
<%
taxonomies.each do |taxonomy|
taxonomies.ordered.each do |taxonomy|
taxonomy_l10n = taxonomy.localization_for(l10n.language)
next if taxonomy_l10n.nil?
%>
- name: "<%= prepare_text_for_static taxonomy_l10n.to_s %>"
slug: "<%= taxonomy_l10n.slug_with_ancestors_slugs(separator: '-') %>"
categories:
<%
about_categories.in_taxonomy(taxonomy).each do |category|
about_categories.in_taxonomy(taxonomy).ordered.each do |category|
category_l10n = category.localization_for(l10n.language)
next if category_l10n.nil?
hugo = category_l10n.hugo(@website)
Expand Down

0 comments on commit 9911aa1

Please sign in to comment.