diff --git a/src/views/Blog.vue b/src/views/Blog.vue index a0e47cb..1b5251a 100644 --- a/src/views/Blog.vue +++ b/src/views/Blog.vue @@ -36,7 +36,7 @@ export default class Blog extends Vue get filteredPosts(): BlogPost[] { - const posts = this.meta.posts.filter(it => !it.pinned || (this.tag ? it.tags.includes(this.tag) : + const posts = this.meta.posts.filter(it => it.pinned || (this.tag ? it.tags.includes(this.tag) : this.category ? it.category == this.category : true)) // Put pinned posts on top