Update PostLayout.astro

This commit is contained in:
2026-06-17 00:05:07 +08:00
committed by GitHub
parent ce799d3e51
commit 7b211fbf76
+2 -7
View File
@@ -3,7 +3,7 @@
import Layout from "./Layout.astro";
import config from "@/config";
import Comment from "../components/Comment.astro";
import Footer from "../components/Footer.astro"; // ← 导入你的页脚组件
import Footer from "../components/Footer.astro";
type Props = {
title?: string;
@@ -78,16 +78,11 @@ const structuredData = {
></script>
</Fragment>
<!-- 文章内容 -->
<div class="max-w-3xl mx-auto px-4">
<slot />
</div>
<slot />
<!-- 评论区 -->
<div class="max-w-3xl mx-auto px-4 mt-8" style="clear: both;">
<Comment />
</div>
<!-- 页脚(放在最后) -->
<Footer />
</Layout>