chore: 移除首页的笔记模块

- 移除首页的笔记模块,因为笔记功能暂时不使用
- 修改了README中的链接格式,使用plaintext
- 修改了menuLinks,注释掉了notes
This commit is contained in:
KazooTTT
2025-04-01 17:09:42 +08:00
parent 75da123e09
commit fa9ab1a4bc
2 changed files with 6 additions and 7 deletions

View File

@ -1,7 +1,6 @@
--- ---
import SocialList from "@/components/SocialList.astro"; import SocialList from "@/components/SocialList.astro";
import PostPreview from "@/components/blog/PostPreview.astro"; import PostPreview from "@/components/blog/PostPreview.astro";
import Note from "@/components/note/Note.astro";
import { getAllFixedToTopPosts, getAllNotes, getAllPosts } from "@/data/post"; import { getAllFixedToTopPosts, getAllNotes, getAllPosts } from "@/data/post";
import PageLayout from "@/layouts/Base.astro"; import PageLayout from "@/layouts/Base.astro";
import { collectionDateSort } from "@/utils/date"; import { collectionDateSort } from "@/utils/date";
@ -74,7 +73,7 @@ const latestNotes = allNotes.sort(collectionDateSort).slice(0, MAX_NOTES);
} }
</ul> </ul>
</section> </section>
{ <!-- {
latestNotes.length > 0 && ( latestNotes.length > 0 && (
<section class="mt-16"> <section class="mt-16">
<h2 class="title text-accent mb-6 text-xl"> <h2 class="title text-accent mb-6 text-xl">
@ -89,7 +88,7 @@ const latestNotes = allNotes.sort(collectionDateSort).slice(0, MAX_NOTES);
</ul> </ul>
</section> </section>
) )
} } -->
<ContentFooter /> <ContentFooter />
<GiscusComment client:load /> <GiscusComment client:load />
</PageLayout> </PageLayout>

View File

@ -45,10 +45,10 @@ export const menuLinks: { path: string; title: string }[] = [
path: "/posts/", path: "/posts/",
title: "Blog", title: "Blog",
}, },
{ // {
path: "/notes/", // path: "/notes/",
title: "Notes", // title: "Notes",
}, // },
{ {
path: "/friends/", path: "/friends/",
title: "Friends", title: "Friends",