Skip to content

Commit 292fa87

Browse files
committed
Fixed show Markdown tags for description page
1 parent da38880 commit 292fa87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,6 @@ public function estimatedReadingTime(int $wordsPerMinute = 100): int
197197
*/
198198
public function getDescriptionAttribute()
199199
{
200-
return Str::of($this->content)->stripTags()->words(20);
200+
return Str::of($this->content)->words(30)->markdown()->stripTags();
201201
}
202202
}

0 commit comments

Comments
 (0)