feat: 帖子全局/板块置顶支持权重排序,优化列表与详情渲染
This commit is contained in:
@@ -673,10 +673,10 @@ func writeSSRPostRow(
|
||||
}
|
||||
|
||||
b.WriteString(`<div class="post-title-row">`)
|
||||
if post.Pinned {
|
||||
if post.Pinned > 0 {
|
||||
b.WriteString(`<span class="post-pin-badge" title="全局置顶">全局置顶</span>`)
|
||||
}
|
||||
if post.BoardPinned {
|
||||
if post.BoardPinned > 0 {
|
||||
b.WriteString(`<span class="post-pin-badge post-pin-badge--board" title="板块置顶">板块置顶</span>`)
|
||||
}
|
||||
if post.Featured {
|
||||
|
||||
Reference in New Issue
Block a user