Skip to content

Commit be38d5f

Browse files
committed
update post description build
1 parent 3e81b8f commit be38d5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export default class Renderer extends Model {
135135
hideInList: !!item.data.hideInList,
136136
isTop: !!item.data.isTop,
137137
stats,
138-
description: content.replace(/<[^>]*>/g, '').substring(0, 120),
138+
description: `${content.replace(/<[^>]*>/g, '').substring(0, 120)}...`,
139139
}
140140

141141
result.toc = toc

0 commit comments

Comments
 (0)