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

wip

parent 673fca0f
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@
# fk_rails_e9646cce64 (university_id => universities.id)
# fk_rails_f389ba7d45 (website_id => communication_websites.id)
#
class Communication::Website::PreviousLink < ApplicationRecord
class Communication::Website::Permalink < ApplicationRecord
include Sanitizable
include WithUniversity
......
class Communication::Website::Permalink::Page
end
\ No newline at end of file
url: "<%= @about.permalink_in_website(@website) %>"
<% if @about&.slug %>
slug: "<%= @about.slug %>"
<% end %>
<% if @about.previous_links.any? %>
aliases:
<% @about.previous_links.each do |previous_link| %>
......
---
title: "<%= @about.name %>"
slug: "<%= @about.path %>"
<%= render 'admin/application/static/permalink' %>
<% if @about.parent %>
parent: "<%= @about.parent.path %>"
<% end %>
<%= render 'admin/application/static/aliases' %>
position: <%= @about.position %>
<%= render 'admin/communication/unsplash/static' %>
description: >
......
......@@ -2,8 +2,7 @@
title: >
<%= @about.title %>
breadcrumb_title: "<%= @about.breadcrumb_title.blank? ? @about.title : @about.breadcrumb_title %>"
url: "<%= @about.path %>"
<%= render 'admin/application/static/aliases' %>
<%= render 'admin/application/static/permalink' %>
position: <%= @about.position %>
full_width: <%= @about.full_width %>
bodyclass: <%= @about.best_bodyclass %>
......
---
title: "<%= @about.title %>"
date: "<%= @about.published_at.iso8601 %>"
slug: "<%= @about.slug %>"
<%= render 'admin/application/static/aliases' %>
<%= render 'admin/application/static/permalink' %>
<% if @about.pinned %>
weight: 1
<% end %>
......
---
title: >
<%= @about.to_s %>
slug: "<%= @about.slug %>"
<%= render 'admin/application/static/aliases' %>
<%= render 'admin/application/static/permalink' %>
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