Skip to content

Commit e72fd5b

Browse files
committed
Add goscis
1 parent c7f8631 commit e72fd5b

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

src/components/Prose.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
prose-a:text-blue-600 prose-p:text-justify prose-img:rounded-xl
55
prose-headings:underline">
66
<slot />
7-
</div>
7+
</div>
8+
<!-- 用法: prose-[element]:class-to-apply 给所有的 <h1> 标签添加 font-bold 的 Tailwind 类。 -->

src/pages/blog/[page].astro

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,33 @@ const readTimeMin = Math.ceil(fontNum / MIN_READ_COUNT);
4949
<p class="read-time"><em>{readTimeMin}</em> 分钟 阅读</p>
5050
</div>
5151
</div>
52-
53-
<Prose>
54-
<Content />
55-
</Prose>
52+
<article id="text">
53+
<Prose>
54+
<Content />
55+
</Prose>
56+
</article>
57+
<script
58+
src="https://giscus.app/client.js"
59+
data-repo="LingLambda/linglambda.github.io"
60+
data-repo-id="R_kgDOOOWNqQ"
61+
data-category="Announcements"
62+
data-category-id="DIC_kwDOOOWNqc4Co3Ed"
63+
data-mapping="pathname"
64+
data-strict="0"
65+
data-reactions-enabled="1"
66+
data-emit-metadata="0"
67+
data-input-position="top"
68+
data-theme="preferred_color_scheme"
69+
data-lang="zh-CN"
70+
crossorigin="anonymous"
71+
async></script>
5672
</BaseLayout>
5773

5874
<style>
5975
em {
6076
font-style: normal;
6177
}
6278

63-
.blog-head {
64-
padding-bottom: 50px;
65-
}
66-
6779
.blog-head > * {
6880
line-height: 50px;
6981
}
@@ -91,4 +103,8 @@ const readTimeMin = Math.ceil(fontNum / MIN_READ_COUNT);
91103
.blog-head .other-info p {
92104
color: #808080;
93105
}
106+
107+
#text {
108+
margin: 50px 0;
109+
}
94110
</style>

0 commit comments

Comments
 (0)