mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-16 23:41:20 +08:00
style: 移除 TOCHeading 和 BlogPost 组件中的 # 符号
- 移除 TOCHeading 组件中链接前的 # 符号 - 移除 BlogPost 组件中标题前的 # 符号
This commit is contained in:
@ -13,7 +13,7 @@ const {
|
|||||||
<li class={`${depth > 2 ? "ms-2" : ""}`}>
|
<li class={`${depth > 2 ? "ms-2" : ""}`}>
|
||||||
<a
|
<a
|
||||||
class={`line-clamp-2 hover:text-accent ${depth <= 2 ? "mt-3" : "mt-2 text-xs"}`}
|
class={`line-clamp-2 hover:text-accent ${depth <= 2 ? "mt-3" : "mt-2 text-xs"}`}
|
||||||
href={`#${slug}`}><span aria-hidden="true" class="me-0.5">#</span>{text}</a
|
href={`#${slug}`}><span aria-hidden="true" class="me-0.5"></span>{text}</a
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
!!children.length && (
|
!!children.length && (
|
||||||
|
@ -41,7 +41,7 @@ const readingTime: string = remarkPluginFrontmatter.readingTime;
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-10 lg:flex-row lg:items-start">
|
<div class="flex flex-col gap-10 lg:flex-row lg:items-start">
|
||||||
<div
|
<div
|
||||||
class="prose prose-base prose-headings:font-semibold prose-headings:text-accent-2 prose-headings:before:absolute prose-headings:before:-ms-4 prose-headings:before:text-gray-600 prose-headings:hover:before:text-accent sm:prose-headings:before:content-['#'] sm:prose-th:before:content-none w-full lg:!max-w-none"
|
class="prose prose-base prose-headings:font-semibold prose-headings:text-accent-2 prose-headings:before:absolute prose-headings:before:-ms-4 prose-headings:before:text-gray-600 prose-headings:hover:before:text-accent sm:prose-th:before:content-none w-full lg:!max-w-none"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
<WebMentions />
|
<WebMentions />
|
||||||
@ -61,7 +61,7 @@ const readingTime: string = remarkPluginFrontmatter.readingTime;
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-10 lg:flex-row lg:items-start">
|
<div class="flex flex-col gap-10 lg:flex-row lg:items-start">
|
||||||
<div
|
<div
|
||||||
class="prose prose-base prose-headings:font-semibold prose-headings:text-accent-2 prose-headings:before:absolute prose-headings:before:-ms-4 prose-headings:before:text-gray-600 prose-headings:hover:before:text-accent sm:prose-headings:before:content-['#'] sm:prose-th:before:content-none w-full lg:!max-w-none"
|
class="prose prose-base prose-headings:font-semibold prose-headings:text-accent-2 prose-headings:before:absolute prose-headings:before:-ms-4 prose-headings:before:text-gray-600 prose-headings:hover:before:text-accent sm:prose-th:before:content-none w-full lg:!max-w-none"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
<WebMentions />
|
<WebMentions />
|
||||||
|
Reference in New Issue
Block a user