app/views/admin/communication/blocks/templates/posts/_static.html.erb
<%= block_component_static block, :mode %>
<% if block.template.mode == 'all' %>
all: true
<% elsif block.template.mode == 'category' && block.template.category %>
<%
category_l10n = block.template.category.localization_for(block.language)
if category_l10n.present?
%>
category: "/<%= category_l10n.slug_with_ancestors_slugs(separator: '-') %>/"
<% end %>
<% end %>
layout: <%= block.template.layout %>
<%= block_options_static block %>
posts:
<% block.template.selected_posts.each do |post| %>
<% post_l10n = post.localization_for(block.language) %>
- "<%= post_l10n.static_path %>"
<% end %>