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

pages

parent f7f0b389
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,23 @@
layout: <%= block.template.layout %>
pages:
<% block.template.selected_pages.each do |element| %>
- page: <%= element.path %>
slug: <%= element.path %>
- page: "<%= element.path %>"
data:
title: >-
<%= prepare_text_for_static element.title %>
summary: >-
<%= prepare_text_for_static element.summary, 7 %>
url: "<%= element.path %>"
bodyclass: >-
<%= prepare_text_for_static element.bodyclass, 7 %>
<% if element.best_featured_image.attached?%>
image:
id: "<%= element.best_featured_image.id %>"
alt: >-
<%= prepare_text_for_static element.best_featured_image_alt, 7 %>
credit: >-
<%= prepare_html_for_static element.best_featured_image_credit, @website.university %>
<% end %>
<% 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