Skip to content
Snippets Groups Projects
Commit 97484264 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

people

parent 572bf851
No related branches found
No related tags found
No related merge requests found
......@@ -6,4 +6,19 @@
<% next unless element.person %>
- slug: "<%= element.person.slug %>"
<%= block_component_static block, :role, template: element, depth: 5 %>
<% end %>
elements:
<% block.template.elements.each do |element| %>
<% next unless element.person %>
- title: >-
<%= prepare_text_for_static element.person.to_s %>
summary: >-
<% if element.role.present? %>
<%= prepare_text_for_static element.role, 6 %>
<% else %>
<%= prepare_text_for_static element.person.summary, 6 %>
<% end %>
kind: "osuny"
path: "<%= element.person.slug %>"
url: "<%= element.person.current_permalink_in_website(@website)&.path %>"
<% end %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment