app/views/admin/communication/blocks/templates/pages/_static.html.erb
<%
if block.template.page
page = block.template.page
page_l10n = page.localization_for(block.language)
%>
page:
path: "<%= page_l10n.current_permalink_in_website(@website)&.path %>"
slug: "<%= page_l10n.slug %>"
file: "<%= page_l10n.git_path_relative %>"
<% end %>
<%= block_options_static block %>
layout: <%= block.template.layout %>
pages:
<%
block.template.selected_pages.each do |element|
element_l10n = element.localization_for(block.language)
%>
- path: "<%= element_l10n.current_permalink_in_website(@website)&.path %>"
slug: "<%= element_l10n.slug %>"
file: "<%= element_l10n.git_path_relative %>"
external: false
<% end %>