From 2629aeb24687b6a21e1e95fd5f1702f0d59f6f65 Mon Sep 17 00:00:00 2001 From: Arnaud Levy Date: Tue, 31 Mar 2026 18:51:18 +0200 Subject: [PATCH 1/2] Fix #3902 --- app/views/admin/communication/websites/pages/static.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/admin/communication/websites/pages/static.html.erb b/app/views/admin/communication/websites/pages/static.html.erb index 0da985552..ecc3bc62c 100644 --- a/app/views/admin/communication/websites/pages/static.html.erb +++ b/app/views/admin/communication/websites/pages/static.html.erb @@ -26,8 +26,10 @@ children: <% @l10n.children.published.ordered.each do |child| next unless child.about&.is_listed_among_children? + hugo = child.hugo(@website) + next if hugo.file.blank? %> - - "<%= child.git_path_relative %>" +<%= render 'admin/application/static/hugo/single', hugo: hugo, depth: 1 %> <% end %> <% end %> <%= osuny_static_text 'meta_description', @l10n.meta_description %> From f8e303c19709a36c5e52ecdbf5a8b0265ea04db2 Mon Sep 17 00:00:00 2001 From: Arnaud Levy Date: Wed, 1 Apr 2026 09:15:41 +0200 Subject: [PATCH 2/2] both --- .../admin/communication/websites/pages/static.html.erb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/views/admin/communication/websites/pages/static.html.erb b/app/views/admin/communication/websites/pages/static.html.erb index ecc3bc62c..26f87931e 100644 --- a/app/views/admin/communication/websites/pages/static.html.erb +++ b/app/views/admin/communication/websites/pages/static.html.erb @@ -24,6 +24,14 @@ weight: <%= page.position %> <% if @l10n.children.published.any? %> children: <% +# children is deprecated, remove when theme 9.2.0 is deployed +@l10n.children.published.ordered.each do |child| + next unless child.about&.is_listed_among_children? +%> + - "<%= child.git_path_relative %>" +<% end %> +child_pages: +<% @l10n.children.published.ordered.each do |child| next unless child.about&.is_listed_among_children? hugo = child.hugo(@website)