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 = ''