mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-17 07:51:21 +08:00
chore: 移除首页的笔记模块
- 移除首页的笔记模块,因为笔记功能暂时不使用 - 修改了README中的链接格式,使用plaintext - 修改了menuLinks,注释掉了notes
This commit is contained in:
@ -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>
|
||||||
|
@ -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",
|
||||||
|
Reference in New Issue
Block a user