Commit e7aeb51a authored by Yashu Mittal's avatar Yashu Mittal 👍🏻

Fix: Author post count

parent 82f9086e
......@@ -85,9 +85,9 @@
computed: {
numberofPosts() {
let count = this.$page.author.belongsTo.edges.length
if (count = 1) {
if (count == 1) {
return `${count} post`
} else if (count <= 2) {
} else if (count >= 2) {
return `${count} posts`
} else {
return 'No posts'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment