Files
jiang13-forum/templates/boards/list.tmpl
freefire f0358e0f71 feat: 完整内容 Limits 与伪静态 Admin
设置页可配字数/编辑窗/分页与伪静态后缀;公开帖/板/用户链接走规范路径并 301。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 04:12:43 +08:00

29 lines
945 B
Cheetah

{{define "boards/list"}}
{{template "base/head" .}}
{{template "base/navbar" .}}
<main class="j13-main j13-boards">
<h1>板块</h1>
{{template "base/alert" .}}
{{if .Items}}
<ul class="j13-boards__grid">
{{range .Items}}
<li>
<a class="j13-boards__card" href="{{.Href}}" data-color="{{.ColorIndex}}">
<span class="j13-boards__dot" aria-hidden="true"></span>
<span class="j13-boards__body">
<strong>{{.Name}}</strong>
{{if .Icon}}<span class="j13-muted j13-boards__icon">{{.Icon}}</span>{{end}}
{{if .Description}}<span class="j13-boards__desc">{{.Description}}</span>{{end}}
<span class="j13-muted">{{.PostCount}} 帖</span>
</span>
</a>
</li>
{{end}}
</ul>
{{else}}
<p class="j13-empty">暂无板块。{{if .IsAdmin}}请前往 <a href="/admin/boards">后台</a> 创建。{{end}}</p>
{{end}}
</main>
{{template "base/footer" .}}
{{end}}