diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx index 96571bfb9b2..be3cfc390bf 100644 --- a/app/[locale]/page.tsx +++ b/app/[locale]/page.tsx @@ -19,6 +19,7 @@ import { getLocaleTimestamp } from "@/lib/utils/time" import { getRequiredNamespacesForPage } from "@/lib/utils/translations" import { + ATTESTANT_BLOG, BASE_TIME_UNIT, BLOG_FEEDS, BLOGS_WITHOUT_FEED, @@ -39,7 +40,8 @@ import { fetchTotalValueLocked } from "@/lib/api/fetchTotalValueLocked" // API calls const fetchXmlBlogFeeds = async () => { - return await fetchRSS(BLOG_FEEDS) + const xmlUrls = BLOG_FEEDS.filter((feed) => ![ATTESTANT_BLOG].includes(feed)) + return await fetchRSS(xmlUrls) } // In seconds diff --git a/src/lib/constants.ts b/src/lib/constants.ts index ad94090f080..3353acd3178 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -175,6 +175,7 @@ export const RSS_DISPLAY_COUNT = 6 export const VITALIK_FEED = "https://vitalik.eth.limo/feed.xml" export const SOLIDITY_FEED = "https://soliditylang.org/feed.xml" +export const ATTESTANT_BLOG = "https://www.attestant.io/posts/" export const COMMUNITY_BLOGS: CommunityBlog[] = [ { @@ -197,10 +198,7 @@ export const COMMUNITY_BLOGS: CommunityBlog[] = [ name: "0xPARC", href: "https://0xparc.org/blog", }, - { - href: "https://www.attestant.io/posts/", - feed: "https://www.attestant.io/posts/", - }, + { href: ATTESTANT_BLOG, feed: ATTESTANT_BLOG }, { name: "Devcon", href: "https://devcon.org/en/blogs/" }, { href: "https://soliditylang.org/blog/",