diff --git a/templates/page/search.html.ep b/templates/page/search.html.ep index c472793..6199054 100644 --- a/templates/page/search.html.ep +++ b/templates/page/search.html.ep @@ -1,5 +1,5 @@ % layout 'default'; -% title 'Search Results'; +% title scalar @{$search_results} ? 'Search Results' : 'Search'; <% content_for open_graph => begin %> @@ -27,9 +27,18 @@ <% } =%>
<%= $result->{'post_author'} %>
+ <% if (299 < length $result->{'post_body'}) { =%> +
+ + <%= truncate_text $result->{'post_body'} %> + + <%== markdown $result->{'post_body'} =%> +
+ <% } else { =%>
- <%== markdown truncate_text $result->{'post_body'} =%> + <%== markdown $result->{'post_body'} =%>
+ <% } =%> <% } =%> <% if ($last_page && $last_page != 1) { =%> diff --git a/templates/thread/by_page.html.ep b/templates/thread/by_page.html.ep index 9ffa008..268b8f3 100644 --- a/templates/thread/by_page.html.ep +++ b/templates/thread/by_page.html.ep @@ -26,7 +26,7 @@ <% if (299 < length $thread->{'body'}) { =%>
- <%== truncate_text $thread->{'body'} %> + <%= truncate_text $thread->{'body'} %> <%== markdown $thread->{'body'} =%>