[F] Fix filter
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ export default class Blog extends Vue
|
|||||||
|
|
||||||
get filteredPosts(): BlogPost[]
|
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))
|
this.category ? it.category == this.category : true))
|
||||||
|
|
||||||
// Put pinned posts on top
|
// Put pinned posts on top
|
||||||
|
|||||||
Reference in New Issue
Block a user