regression, if there is not excerpt skip

This commit is contained in:
Sam 2018-08-09 15:07:18 +10:00
parent ed4c0f256e
commit 7aef604f7d
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@
<% end %>
<span class='posts' title='<%= t 'posts' %>'>(<%= t.posts_count %>)</span>
<% if t.pinned_until && t.pinned_until > Time.zone.now && (t.pinned_globally || @list.category) %>
<% if t.pinned_until && (t.pinned_until > Time.zone.now) && (t.pinned_globally || @list.category) && t.excerpt %>
<p class='excerpt'>
<%= t.excerpt.html_safe %>
</p>