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

dry

parent 188fac91
No related branches found
No related tags found
No related merge requests found
breadcrumbs:
<% pages.each do |page| %>
- title: "<%= page.best_title %>"
path: "<%= page.path %>"
<% end %>
- title: "<%= current.to_s %>"
\ No newline at end of file
......@@ -2,12 +2,9 @@
title: >
<%= @about.title %>
breadcrumb_title: "<%= @about.best_title %>"
breadcrumbs:
<% @about.ancestors.each do |page| %>
- title: "<%= page.best_title %>"
path: "<%= page.path %>"
<% end %>
- title: "<%= @about.best_title %>"
<%= render 'admin/application/static/breadcrumbs',
pages: @about.ancestors,
current: @about %>
<%= render 'admin/application/static/permalink' %>
<%= render 'admin/application/static/design' %>
<% if @about.static_layout %>
......
---
title: "<%= @about.title %>"
date: "<%= @about.published_at&.iso8601 %>"
breadcrumbs:
<% @website.special_page(Communication::Website::Page::CommunicationPost)
.ancestors_and_self
.each do |page| %>
- title: "<%= page.best_title %>"
path: "<%= page.path %>"
<% end %>
- title: "<%= @about.title %>"
<%= render 'admin/application/static/breadcrumbs',
pages: @website.special_page(Communication::Website::Page::CommunicationPost).ancestors_and_self,
current: @about %>
<%= render 'admin/application/static/permalink' %>
<%= render 'admin/application/static/design', full_width: false, toc_offcanvas: false %>
<% if @about.pinned %>
......
......@@ -3,6 +3,9 @@ title: >-
<%= @about.to_s %>
linkTitle: >-
<%= @about.to_s_alphabetical %>
<%= render 'admin/application/static/breadcrumbs',
pages: @website.special_page(Communication::Website::Page::Person).ancestors_and_self,
current: @about %>
<%= render 'admin/application/static/permalink' %>
<%= render 'admin/application/meta_description/static' %>
<%= render 'admin/application/summary/static' %>
......
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