We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b62588 + 475b53e commit 30541d5Copy full SHA for 30541d5
app/views/posts/_article_list.html.erb
@@ -21,6 +21,11 @@
21
<% end %>
22
<%= link_to post.title, generic_share_link(post), 'data-ckb-item-link' => '' %>
23
</div>
24
+ <% if (SiteSetting['PostBodyListTruncateLength'] || 0) > 0 %>
25
+ <p class="post-list--content">
26
+ <%= sanitize(strip_tags(post.body).truncate(SiteSetting['PostBodyListTruncateLength'] || 200), scrubber: scrubber) %>
27
+ </p>
28
+ <% end %>
29
<p class="has-color-tertiary-600 has-float-right post-list--meta">
30
posted <span title="<%= post.created_at.iso8601 %>"><%= time_ago_in_words(post.created_at, locale: :en_abbrev) %> ago</span>
31
by <%= user_link post.user %>
0 commit comments