feat: 去除访问统计信息

This commit is contained in:
2026-07-22 17:27:36 +08:00
parent aa4f3389a3
commit c9d6ce3464
7 changed files with 43 additions and 32 deletions

View File

@@ -1,25 +1,24 @@
---
import type {Post, CategoriesStats} from "@/types/post";
import type { Post } from "@/types/post";
import IndexSidebar from "@/components/IndexSidebar.astro";
import PostList from '@/components/PostList.astro'
import PostList from "@/components/PostList.astro";
interface Props {
posts: Post[]
page: number
totalPage: number
categories: CategoriesStats[]
posts: Post[];
page: number;
totalPage: number;
}
const {posts, page, totalPage, categories} = Astro.props
const { posts, page, totalPage } = Astro.props;
---
<div class="page-content">
<div class="container">
<PostList posts={posts} page={page} totalPage={totalPage}/>
<IndexSidebar categories={categories}/>
<PostList posts={posts} page={page} totalPage={totalPage} />
<IndexSidebar />
</div>
</div>
<style>
.container {
width: 100%;
@@ -27,4 +26,9 @@ const {posts, page, totalPage, categories} = Astro.props
gap: 28px;
}
@media (max-width: 860px) {
.container {
flex-direction: column;
}
}
</style>