diff --git a/app/views/admin/communication/websites/pages/static.html.erb b/app/views/admin/communication/websites/pages/static.html.erb index 0da985552..26f87931e 100644 --- a/app/views/admin/communication/websites/pages/static.html.erb +++ b/app/views/admin/communication/websites/pages/static.html.erb @@ -24,11 +24,21 @@ 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) + next if hugo.file.blank? +%> +<%= render 'admin/application/static/hugo/single', hugo: hugo, depth: 1 %> +<% end %> <% end %> <%= osuny_static_text 'meta_description', @l10n.meta_description %> <%= osuny_static_html 'summary', @l10n.summary %>