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:
@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user