简单修改

This commit is contained in:
2026-08-27 22:02:30 +08:00
parent 12dd13a76f
commit 6725a02592
5 changed files with 83 additions and 12 deletions
+4
View File
@@ -3,6 +3,7 @@ import { render } from 'astro:content';
import BaseLayout from '../../layouts/BaseLayout.astro';
import { getPublishedPosts, formatDate, readingTime, heroCss } from '../../lib/utils';
import Toc from '../../components/Toc.astro';
import Comments from '../../components/Comments.astro';
import '../../styles/prose.css';
export async function getStaticPaths() {
@@ -65,6 +66,9 @@ const updated = post.data.updatedDate ? formatDate(post.data.updatedDate) : null
</div>
</div>
<!-- 评论区(自托管 Artalk)-->
<Comments pageKey={`/posts/${post.id.replace(/\/index$/, '')}`} pageTitle={post.data.title} />
<!-- 上下篇 -->
{(prev || next) && (
<nav class="pager reveal">