Skip to content

Commit b9b902a

Browse files
committed
Fix homepage hydration mismatch
1 parent 42df80b commit b9b902a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/index.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ import { CopyButton } from "../theme/components/CopyButton";
3131
<header className="docs-hero">
3232
<div className="docs-hero__intro">
3333
<h1><span translate="no">Halo</span> 文档</h1>
34-
<p>
34+
<div className="docs-hero__description">
3535
Halo 是一款强大易用的开源建站工具,可以通过丰富的主题和插件搭建任何类型的网站。这里汇集了安装、使用和开发
3636
Halo 所需的全部文档。
37-
</p>
37+
</div>
3838
<Link className="docs-hero__cta docs-hero__cta--primary" to={{pathname: '/guide/install/'}}>
3939
快速开始 <span aria-hidden="true">→</span>
4040
</Link>

‎styles/index.scss‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
text-wrap: balance;
5151
}
5252

53-
.docs-hero__intro > p {
53+
.docs-hero__description {
5454
max-width: 32em;
5555
margin: 30px 0 30px;
5656
color: var(--rp-c-text-2);
@@ -858,7 +858,7 @@
858858
font-size: 34px;
859859
}
860860

861-
.docs-hero__intro > p {
861+
.docs-hero__description {
862862
margin-bottom: 24px;
863863
font-size: 15px;
864864
}

0 commit comments

Comments
 (0)