简单修改
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user