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

static

parent 4a8c441e
No related branches found
No related tags found
No related merge requests found
<% if about.blocks.any? %>
blocks:
<% about.blocks.each do |block| %>
- template: <%= block.template %>
data:
<%= render "admin/communication/website/blocks/templates/#{block.template}/static", block: block %><% end %>
<% end %>
- title: Leadership
persons:
- amah-edoh
- liliane-umubyeyi
- name: Partner 1
url: https://partner1.com
logo: "e09f3794-44e5-4b51-be02-0e384616e791"
......@@ -12,5 +12,6 @@ category: "<%= @page.related_category.path %>/"
<% end %>
description: >
<%= prepare_text_for_static @page.description %>
<%= render 'admin/communication/website/blocks/static', about: @page %>
---
<%= prepare_html_for_static @page.text, @page.university %>
......@@ -56,7 +56,7 @@ views/admin/communication/website/blocks/_static.html.erb
qui donne ce type de résultat
```
blocks:
- kind: partners
- template: partners
data:
- name: Partner 1
url: https://partner1.com
......@@ -66,3 +66,9 @@ Les générateurs de chaque type suivent l'organisation :
```
views/admin/communication/website/blocks/templates/partners/_static.html.erb
```
Attention, il faut 6 espaces pour respecter l'indentation du front-matter :
```
- name: Partner 1
url: https://partner1.com
logo: "e09f3794-44e5-4b51-be02-0e384616e791"
```
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