Skip to content

Commit

Permalink
chore: remove featured prop for changelog and guides
Browse files Browse the repository at this point in the history
  • Loading branch information
saimonkat committed Feb 7, 2025
1 parent 027277b commit 4b2d640
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion content/changelog/2024-12-20.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
description: Wrapping up 2024, a reminder to update the Neon CLI, and fixes & improvements
isFeatured: true
---

### Wrapping up 2024
Expand Down
1 change: 0 additions & 1 deletion content/guides/queue-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ author: vkarpov15
enableTableOfContents: true
createdAt: '2025-01-10T17:48:36.612Z'
updatedOn: '2025-01-10T17:48:36.612Z'
isFeatured: true
---

The `SKIP LOCKED` clause allows concurrent transactions to skip rows currently locked by other transactions.
Expand Down
3 changes: 1 addition & 2 deletions src/utils/api-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const getAllChangelogs = async () => {
.map((slug) => {
if (!getPostBySlug(slug, CHANGELOG_DIR_PATH)) return;
const {
data: { description, isDraft, isFeatured, redirectFrom },
data: { description, isDraft, redirectFrom },
content,
} = getPostBySlug(slug, CHANGELOG_DIR_PATH);
const slugWithoutFirstSlash = slug.slice(1);
Expand All @@ -89,7 +89,6 @@ const getAllChangelogs = async () => {
date,
content,
isDraft,
isFeatured,
redirectFrom,
};
})
Expand Down
3 changes: 1 addition & 2 deletions src/utils/api-guides.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const getAllGuides = async () => {

const slugWithoutFirstSlash = slug.slice(1);
const {
data: { title, subtitle, createdAt, updatedOn, isDraft, isFeatured, redirectFrom },
data: { title, subtitle, createdAt, updatedOn, isDraft, redirectFrom },
content,
author,
} = data;
Expand All @@ -80,7 +80,6 @@ const getAllGuides = async () => {
date: createdAt,
content,
isDraft,
isFeatured,
redirectFrom,
};
})
Expand Down
2 changes: 1 addition & 1 deletion src/utils/api-wp.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ const getAllPosts = async () => {
// Separate first two featured posts
const [featuredWpPosts, restWpPosts] = wpPosts.reduce(
([featured, rest], post) => {
if (post.pageBlogPost.isFeatured && featured.length < 2) {
if (post.pageBlogPost?.isFeatured && featured.length < 2) {
featured.push(post);
} else {
rest.push(post);
Expand Down

0 comments on commit 4b2d640

Please sign in to comment.