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

dry statics

parent bd2bb214
No related branches found
No related tags found
No related merge requests found
<% if @about.previous_links.any? %>
aliases:
<% @about.previous_links.each do |previous_link| %>
- <%= previous_link.link %>
<% end %>
<% end %>
......@@ -4,12 +4,7 @@ slug: "<%= @about.path %>"
<% if @about.parent %>
parent: "<%= @about.parent.path %>"
<% end %>
<% if @about.previous_links.any? %>
aliases:
<% @about.previous_links.each do |previous_link| %>
- <%= previous_link.link %>
<% end %>
<% end %>
<%= render 'admin/application/static/aliases' %>
position: <%= @about.position %>
<%= render 'admin/communication/unsplash/static' %>
description: >
......
......@@ -3,12 +3,7 @@ title: >
<%= @about.title %>
breadcrumb_title: "<%= @about.breadcrumb_title.blank? ? @about.title : @about.breadcrumb_title %>"
url: "<%= @about.path %>"
<% if @about.previous_links.any? %>
aliases:
<% @about.previous_links.each do |previous_link| %>
- <%= previous_link.link %>
<% end %>
<% end %>
<%= render 'admin/application/static/aliases' %>
position: <%= @about.position %>
full_width: <%= @about.full_width %>
bodyclass: <%= @about.best_bodyclass %>
......
......@@ -2,12 +2,7 @@
title: "<%= @about.title %>"
date: "<%= @about.published_at.iso8601 %>"
slug: "<%= @about.slug %>"
<% if @about.previous_links.any? %>
aliases:
<% @about.previous_links.each do |previous_link| %>
- <%= previous_link.link %>
<% end %>
<% end %>
<%= render 'admin/application/static/aliases' %>
<% if @about.pinned %>
weight: 1
<% end %>
......
......@@ -2,12 +2,7 @@
title: >
<%= @about.to_s %>
slug: "<%= @about.slug %>"
<% if @about.previous_links.any? %>
aliases:
<% @about.previous_links.each do |previous_link| %>
- <%= previous_link.link %>
<% end %>
<% end %>
<%= render 'admin/application/static/aliases' %>
first_name: >
<%= @about.first_name %>
last_name: >
......
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