From b82635ef536e504d15401f230510ee0d692a3aac Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 11 Sep 2022 10:41:44 -0400 Subject: [PATCH] [-] Remove commented code --- src/components/BlogIndex.vue | 42 ++---------------------------------- 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/src/components/BlogIndex.vue b/src/components/BlogIndex.vue index b4592a8..a5c3200 100644 --- a/src/components/BlogIndex.vue +++ b/src/components/BlogIndex.vue @@ -26,52 +26,14 @@ export default class BlogIndexLinks extends Vue clickCat(e: MouseEvent, cat: [string, number]): void { e.stopPropagation() - - const c = cat[0] - const q: { [id: string]: string | null } = {category: c} - - // Check if the currently selected post is in this category - // const url_name = this.$route.query.post - // if (url_name) - // { - // const posts = staticMeta.posts.filter(it => it.url_name == url_name) - // if (posts && posts[0].category != c) - // { - // // Doesn't include tag, remove post selection - // q.post = null - // } - // } - - // Clear tag selection - q.tag = null - - pushQuery(q) + pushQuery({category: cat[0], tag: null}) } clickTag(e: MouseEvent, tag: [string, number]): void { e.stopPropagation() - - const t = tag[0] - const q: { [id: string]: string | null } = {tag: t} - - // Check if the currently selected post is in this tag - // const url_name = this.$route.query.post - // if (url_name) - // { - // const posts = staticMeta.posts.filter(it => it.url_name == url_name) - // if (posts && !posts[0].tags.includes(t)) - // { - // // Doesn't include tag, remove post selection - // q.post = null - // } - // } - - // Clear category selection - q.category = null - - pushQuery(q) + pushQuery({tag: tag[0], category: null}) } }