[F] Fix filter

This commit is contained in:
Hykilpikonna
2021-12-26 22:36:08 -05:00
parent ceada6fe5b
commit 2480ef1d89
+1 -1
View File
@@ -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