% layout 'default'; % title 'Threads List'; % content_for open_graph => begin % end % content_for twitter_card => begin % end

<%= title %>

<% if (scalar @{$threads}) { =%>
<% for my $thread (@{$threads}) { =%>

<%= $thread->{'title'} %> <%= link_to "#$thread->{'id'}", single_thread => {thread_id => $thread->{'id'}}, (class => 'post__id') %>

<% if (299 < length $thread->{'body'}) { =%>
<%== truncate_text $thread->{'body'} %> <%== markdown $thread->{'body'} =%>
<% } else { =%>
<%== markdown $thread->{'body'} =%>
<% } =%>
<% } =%> <% if ($last_page && $last_page != 1) { =%> <% } =%>
<% } =%>