mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fix excerpt parsing
This commit is contained in:
parent
accd76c60b
commit
b7b0c99c21
@ -496,7 +496,7 @@ class BlogPost extends Page {
|
||||
*/
|
||||
$content = $this->dbObject('Content');
|
||||
|
||||
return $content->LimitWordCount($wordsToDisplay);
|
||||
return $content->Summary($wordsToDisplay);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -13,8 +13,7 @@
|
||||
</p>
|
||||
|
||||
<% if $Summary %>
|
||||
$Summary
|
||||
<p>
|
||||
<p>$Summary
|
||||
<% else %>
|
||||
<p>$Excerpt
|
||||
<% end_if %>
|
||||
|
Loading…
Reference in New Issue
Block a user