From 8c7453dbccbcd3d6ec5b7ed53f418d12ef461f28 Mon Sep 17 00:00:00 2001
From: gbanyan
Date: Mon, 17 Nov 2025 22:24:49 +0800
Subject: [PATCH] Remove latest articles section from right sidebar
---
components/right-sidebar.tsx | 21 +--------------------
1 file changed, 1 insertion(+), 20 deletions(-)
diff --git a/components/right-sidebar.tsx b/components/right-sidebar.tsx
index 3b0dbfe..084eb52 100644
--- a/components/right-sidebar.tsx
+++ b/components/right-sidebar.tsx
@@ -2,11 +2,10 @@ import Link from 'next/link';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faGithub, faMastodon, faLinkedin } from '@fortawesome/free-brands-svg-icons';
import { siteConfig } from '@/lib/config';
-import { getAllPostsSorted, getAllTagsWithCount } from '@/lib/posts';
+import { getAllTagsWithCount } from '@/lib/posts';
import { allPages } from 'contentlayer/generated';
export function RightSidebar() {
- const latest = getAllPostsSorted().slice(0, 5);
const tags = getAllTagsWithCount().slice(0, 5);
const aboutPage =
@@ -87,24 +86,6 @@ export function RightSidebar() {
-
-
- 最新文章
-
-
- {latest.map((post) => (
- -
-
- {post.title}
-
-
- ))}
-
-
-
{tags.length > 0 && (