Skip to content

Commit b245d89

Browse files
committed
Change tag to blog-or-newsletter to disambiguate with "blog or post"
1 parent cdb6b50 commit b245d89

16 files changed

+27
-19
lines changed

src/app/(main)/resources/reading/reading-page.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "Apollo's Blog",
33
"url": "https://apollographql.com/blog",
4-
"tags": ["blog"]
4+
"tags": ["blog-or-newsletter"]
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "ChilliCream's Blog",
33
"url": "https://chillicream.com/blog",
4-
"tags": ["blog"]
4+
"tags": ["blog-or-newsletter"]
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "DEV.to GraphQL tag",
33
"url": "https://dev.to/t/graphql",
4-
"tags": ["blog"]
4+
"tags": ["blog-or-newsletter"]
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "Escape Security Blog",
33
"url": "https://escape.tech/blog",
4-
"tags": ["blog"]
4+
"tags": ["blog-or-newsletter"]
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "GraphQL Editor Blog",
33
"url": "https://blog.graphqleditor.com",
4-
"tags": ["blog"]
4+
"tags": ["blog-or-newsletter"]
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "GraphQL Weekly",
33
"url": "https://graphqlweekly.com",
4-
"tags": ["blog"]
4+
"tags": ["blog-or-newsletter"]
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "GraphQL WTF Episodes Feed",
33
"url": "https://graphql.wtf",
4-
"tags": ["blog"]
4+
"tags": ["blog-or-newsletter"]
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "Hasura's Blog",
33
"url": "https://hasura.io/blog",
4-
"tags": ["blog"]
4+
"tags": ["blog-or-newsletter"]
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "Inigo's Security Blog",
33
"url": "https://inigo.io/blog",
4-
"tags": ["blog"]
4+
"tags": ["blog-or-newsletter"]
55
}

0 commit comments

Comments
 (0)