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

Fix #732

parent ced9947d
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,10 @@ class Communication::Website::Page < ApplicationRecord
"admin/communication/websites/pages/static"
end
def static_layout
nil
end
def git_dependencies(website)
dependencies = [self] +
website.menus +
......
......@@ -48,5 +48,9 @@ class Communication::Website::Page::Sitemap < Communication::Website::Page
def draftable?
false
end
def static_layout
'sitemap'
end
end
......@@ -4,6 +4,9 @@ title: >
breadcrumb_title: "<%= @about.breadcrumb_title.blank? ? @about.title : @about.breadcrumb_title %>"
<%= render 'admin/application/static/permalink' %>
<%= render 'admin/application/static/design' %>
<% if @about.static_layout %>
layout: <%= @about.static_layout %>
<% end %>
<% if @about.is_a?(Communication::Website::Page::Person) %>
has:
administrators: <%= @website.has_administrators? %>
......
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