From a881b266a6f9f906eaa4b1df8763941c9cb2bf7e Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Wed, 6 Feb 2019 17:20:11 +0100 Subject: [PATCH] Fixed post excert rendering --- components/PostCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/PostCard.vue b/components/PostCard.vue index d2bd19012..090517a37 100644 --- a/components/PostCard.vue +++ b/components/PostCard.vue @@ -87,7 +87,7 @@ export default { computed: { excerpt() { // remove all links from excerpt to prevent issues with the serounding link - let excerpt = this.post.contentExcerpt.replace(/(.+)<\/a>/gim, '') + let excerpt = this.post.contentExcerpt.replace(/(.+)<\/a>/gim, '$1') // do not display content that is only linebreaks if (excerpt.replace(/
/gim, '').trim() === '') { excerpt = ''