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

Fix #1056

parent 4808a987
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ class_name += " block-pages--" + @block.template.layout
<% elsif @block.template.layout === "grid" && @block.template.page && @block.template.show_main_description %>
<h2><%= link_to @block.title, @block.template.page.url %></h2>
<p class="description"><%= @block.template.page.summary %></p>
<p class="description"><%= @block.template.page&.summary %></p>
<% else %>
<h2><%= @block.title %></h2>
......@@ -28,12 +28,12 @@ class_name += " block-pages--" + @block.template.layout
<% end %>
<% if @block.template.layout === "cards" && @block.template.show_main_description && @block.data %>
<div class="description">
<p><%= @block.template.page.summary %></p>
<p><%= @block.template.page&.summary %></p>
</div>
<% end %>
</div>
<% if @block.template.layout === "list" && @block.template.show_main_description && @block.data %>
<p class="description"><%= @block.template.page.summary %></p>
<p class="description"><%= @block.template.page&.summary %></p>
<% end %>
<% end %>
<% if @block.data %>
......
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