@@ -63,28 +63,35 @@ const variants: Record<
6363 "Browse reading materials to learn best practices and stay up to date with the ecosystem." ,
6464 eyebrow : "Reading resources" ,
6565 filter : resource =>
66- resource . tags . includes ( "blog" ) || resource . tags . includes ( "guide" ) ,
66+ resource . tags . some (
67+ tag =>
68+ tag === "blog-or-newsletter" || tag === "guide" || tag === "book" ,
69+ ) ,
6770 } ,
6871 "blogs-and-newsletters" : {
6972 title : "Blogs & Newsletters" ,
7073 description :
7174 "Popular sources to learn and keep track of the GraphQL ecosystem." ,
7275 eyebrow : "Stay informed" ,
73- filter : resource =>
74- resource . tags . includes ( "blog" ) && ! hasTopicTag ( resource ) ,
76+ filter : resource => resource . tags . includes ( "blog-or-newsletter" ) ,
7577 } ,
7678 "individual-posts" : {
7779 title : "Individual Posts" ,
7880 description : "Notable posts from the community." ,
7981 eyebrow : "Deep dives" ,
80- filter : resource => resource . tags . includes ( "blog" ) && hasTopicTag ( resource ) ,
82+ filter : resource =>
83+ resource . tags . some (
84+ tag =>
85+ tag === "guide" ||
86+ ( tag === "blog" && ! resource . url . startsWith ( "/blog" ) ) ,
87+ ) ,
8188 } ,
8289 books : {
8390 title : "Books" ,
8491 description :
8592 "Books to help you level up your GraphQL knowledge and practice." ,
8693 eyebrow : "Read and learn" ,
87- filter : resource => resource . tags . includes ( "guide " ) ,
94+ filter : resource => resource . tags . includes ( "book " ) ,
8895 } ,
8996}
9097
0 commit comments