Skip to content

Commit

Permalink
Use Show Excerpt, before printing excerpt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Sep 19, 2023
1 parent f8462bc commit 183b4be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/php/Module/Posts/views/grid.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'heading' => $post->postTitle,
'hasFooter' => $post->termsUnlinked ? true : false,
'context' => ['module.posts.index'],
'content' => $post->excerptShort,
'content' => isset($post->showExcerpt) ? $post->excerptShort : '',
'meta' => $display_readingtime ? $post->readingTime : false,
'tags' => $post->termsUnlinked,
'date' => $post->postDate,
Expand Down
2 changes: 1 addition & 1 deletion source/php/Module/Posts/views/segment.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'image' => !empty($post->thumbnail['src']) ? $post->thumbnail['src'] : false,
'date' => $post->postDate,
'dateBadge' => !empty($post->dateBadge) ? $post->dateBadge : false,
'content' => !empty($post->excerptShort) ? $post->excerptShort : false,
'content' => !empty($post->showExcerpt) ? $post->excerptShort : false,
'buttons' => [['text' => $labels['readMore'], 'href' => $post->permalink, 'color' => 'primary']],
'containerAware' => true,
'reverseColumns' => isset($imagePosition) ? $imagePosition : true,
Expand Down

0 comments on commit 183b4be

Please sign in to comment.