feat: use rehype-infer-description-meta to get excerpt

This commit is contained in:
DIYgod
2022-12-08 18:56:39 +00:00
parent ee44814b64
commit b72fbb501f
5 changed files with 7 additions and 25 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ export const SiteHome: React.FC<{
</span>
</div>
<div
className="xlog-post-excerpt mt-3 text-zinc-500"
className="xlog-post-excerpt mt-3 text-zinc-500 line-clamp-2"
style={{
wordBreak: "break-word",
}}