diff --git a/components/Author.vue b/components/Author.vue
index f1f57113..e2ae552e 100644
--- a/components/Author.vue
+++ b/components/Author.vue
@@ -18,7 +18,7 @@
@@ -26,11 +26,19 @@
- {{ author.name | truncate(trunc, 18) }}
+ {{ author.name || 'Anonymus' | truncate(26) }}
+
+ @{{ author.slug | truncate(26) }}
+
+
+
+
+ @{{ author.slug | truncate(trunc) }}
+
+
@@ -136,7 +153,7 @@ export default {
},
props: {
post: { type: Object, default: null },
- trunc: { type: Number, default: null },
+ trunc: { type: Number, default: -1 },
showAuthorPopover: { type: Boolean, default: true }
},
data() {
diff --git a/components/PostCard.vue b/components/PostCard.vue
index 25b41025..52b3369c 100644
--- a/components/PostCard.vue
+++ b/components/PostCard.vue
@@ -28,7 +28,7 @@
@@ -88,7 +88,7 @@ export default {
// remove all links from excerpt to prevent issues with the serounding link
let excerpt = this.post.contentExcerpt.replace(/
(.+)<\/a>/gim, '')
// do not display content that is only linebreaks
- if (excerpt.replace(/
/gim, '').trim() === '') {
+ if (excerpt.replace(/(
\s*){2,}/gim, '').trim() === '') {
excerpt = ''
}
diff --git a/graphql/UserProfileQuery.js b/graphql/UserProfileQuery.js
index 4e0245b5..57e52287 100644
--- a/graphql/UserProfileQuery.js
+++ b/graphql/UserProfileQuery.js
@@ -7,6 +7,7 @@ export default app => {
User(slug: $slug) {
id
name
+ slug
avatar
about
locationName
@@ -78,6 +79,7 @@ export default app => {
id
avatar
name
+ slug
location {
name: name${lang}
}
diff --git a/layouts/default.vue b/layouts/default.vue
index 7283bf30..f5ff6e7b 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -46,7 +46,7 @@
slot-scope="{closeMenu}"
>