refactor: 移除 /posts/new 路由,301 重定向至 /studio/write

- /posts/new 路由改为 301 重定向至 /studio/write
- 删除孤儿 NewPage handler
- 帖子列表撰写链接指向 /studio/write
- 保留 posts/new.html 及 editor.js(EditPage 仍在使用)
This commit is contained in:
2026-05-31 15:28:28 +08:00
parent e98bfe193b
commit 7e50c892ad
3 changed files with 4 additions and 10 deletions

View File

@ -7,7 +7,7 @@
<div class="posts-header">
<h1>社区帖子</h1>
{{if .IsLoggedIn}}
<a href="/posts/new" class="btn btn-primary">撰写帖子</a>
<a href="/studio/write" class="btn btn-primary">撰写帖子</a>
{{end}}
</div>