Skip to content

Commit

Permalink
Remove trimming of content for layout post
Browse files Browse the repository at this point in the history
  • Loading branch information
rbertram90 committed Jul 8, 2018
1 parent db0b237 commit 95fced9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/controller/blogcontent_controller.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@ public function viewHome(&$request, &$response)
if ($postlist[$p]['type'] == 'layout') {
$layout = JSONHelper::JSONtoArray($postlist[$p]['content']);
$mdContent = $this->generateLayoutMarkup($layout);
$postlist[$p]['trimmedContent'] = $mdContent;
}
else {
$mdContent = Markdown::defaultTransform($postlist[$p]['content']);
$postlist[$p]['trimmedContent'] = $this->trimContent($mdContent, $summarylength);
}

$postlist[$p]['trimmedContent'] = $this->trimContent($mdContent, $summarylength);

if (strlen($postlist[$p]['tags']) > 0) {
$postlist[$p]['tags'] = explode(',', $postlist[$p]['tags']);
}
Expand Down Expand Up @@ -471,9 +471,12 @@ public function viewPostsByTag(&$request, &$response)
if ($postlist[$p]['type'] == 'layout') {
$layout = JSONHelper::JSONtoArray($postlist[$p]['content']);
$mdContent = $this->generateLayoutMarkup($layout);
$postlist[$p]['trimmedContent'] = $mdContent;

}
else {
$mdContent = Markdown::defaultTransform($postlist[$p]['content']);
$postlist[$p]['trimmedContent'] = $this->trimContent($mdContent, $summarylength);
}

$postlist[$p]['trimmedContent'] = $this->trimContent($mdContent, $summarylength);
Expand Down

0 comments on commit 95fced9

Please sign in to comment.