feat: 帖子全局/板块置顶支持权重排序,优化列表与详情渲染

This commit is contained in:
2026-09-08 23:54:03 +08:00
parent de2f5e8be8
commit 711cd8b759
16 changed files with 362 additions and 64 deletions

View File

@@ -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 {