Skip to content
Snippets Groups Projects
Commit abadc1e6 authored by Olivia206's avatar Olivia206
Browse files

fixed pages path in pages list

parent 94a7b1c5
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ class_name += " block-pages--" + @block.template.layout
<% @block.template.selected_pages.each do |page|
next if page.nil?
%>
<li><%= link_to page, [:admin, page] %></li>
<li><%= link_to page, page.url %></li>
<% end %>
</ul>
......@@ -52,7 +52,7 @@ class_name += " block-pages--" + @block.template.layout
%>
<article class="card">
<h3>
<%= link_to page, [:admin, page] %>
<%= link_to page, page.url %>
</h3>
<% if @block.template.show_description %>
<p><%= page.summary %></p>
......@@ -78,7 +78,7 @@ class_name += " block-pages--" + @block.template.layout
%>
<article>
<h3>
<%= link_to page, [:admin, page] %>
<%= link_to page, page.url %>
</h3>
<% if @block.template.show_description %>
<p><%= page.summary %></p>
......
......@@ -54,6 +54,7 @@ highlight_post = @block.template.selected_posts.first
<% end %>
<% end %>
</div>
<% elsif @block.template.layout === "highlight" %>
<div class="highlight">
<div class="highlight-post">
......@@ -86,6 +87,7 @@ highlight_post = @block.template.selected_posts.first
</div>
</article>
</div>
<div class="list">
<% if @block.data %>
<% @block.template.selected_posts.each do |post|
......
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