mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Update PostLayout.astro
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
import Layout from "./Layout.astro";
|
import Layout from "./Layout.astro";
|
||||||
import config from "@/config";
|
import config from "@/config";
|
||||||
import Comment from "../components/Comment.astro";
|
import Comment from "../components/Comment.astro";
|
||||||
|
import Footer from "../components/Footer.astro"; // ← 导入你的页脚组件
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
title?: string;
|
title?: string;
|
||||||
@@ -77,14 +78,16 @@ const structuredData = {
|
|||||||
></script>
|
></script>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
|
|
||||||
|
<!-- 文章内容 -->
|
||||||
<div class="max-w-3xl mx-auto px-4">
|
<div class="max-w-3xl mx-auto px-4">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<!-- 评论区 -->
|
||||||
class="max-w-3xl mx-auto px-4 mt-8 pb-24"
|
<div class="max-w-3xl mx-auto px-4 mt-8" style="clear: both;">
|
||||||
style="clear: both; position: relative; z-index: 1;"
|
|
||||||
>
|
|
||||||
<Comment />
|
<Comment />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 页脚(放在最后) -->
|
||||||
|
<Footer />
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|||||||
Reference in New Issue
Block a user