1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add hints for special Wiki pages (#17283)

* Add UI hints to create a Wiki sidebar and footer
This commit is contained in:
n
2021-12-03 16:28:54 +09:00
committed by GitHub
parent 6ceef87671
commit 6791aae8de
3 changed files with 7 additions and 0 deletions

View File

@@ -627,6 +627,9 @@ func NewWiki(ctx *context.Context) {
if !ctx.Repo.Repository.HasWiki() {
ctx.Data["title"] = "Home"
}
if ctx.FormString("title") != "" {
ctx.Data["title"] = ctx.FormString("title")
}
ctx.HTML(http.StatusOK, tplWikiNew)
}