1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Fixed about sticky page

Former-commit-id: 10111aa035a63fe2f0743df89bc2e8e7c35e0ad1 [formerly b680358fb4959eb8b0b305bc5360387146615a42] [formerly 7e65060d605e286ed61e98a4b1ecb5179c82f47a [formerly d70c1d08a3573cdb2726c32bf00b813b20090540 [formerly 4652770a6f]]]
Former-commit-id: ac0400898d58c550edb6ab4cfcd21ebeffcfa399 [formerly 48b4f1fcfbbad353eddb4323072dc3d596b09440]
Former-commit-id: d80b3375c0c09813e9510d1c294ed8afc3fa2c6d
Former-commit-id: e859b7572f
This commit is contained in:
Zack Scholl 2016-02-09 18:59:01 -05:00
parent 7860593f6c
commit 0c9d1b30c7

View File

@ -67,6 +67,9 @@ func everythingElse(c *gin.Context) {
if option == "/view" { if option == "/view" {
version := c.DefaultQuery("version", "-1") version := c.DefaultQuery("version", "-1")
versionNum, _ := strconv.Atoi(version) versionNum, _ := strconv.Atoi(version)
if strings.ToLower(title) == "about" {
versionNum = -1
}
currentText, versions, _ := getCurrentText(title, versionNum) currentText, versions, _ := getCurrentText(title, versionNum)
renderMarkdown(c, currentText, title, versions) renderMarkdown(c, currentText, title, versions)
} else if title == "ls" && option == "/"+RuntimeArgs.AdminKey && len(RuntimeArgs.AdminKey) > 1 { } else if title == "ls" && option == "/"+RuntimeArgs.AdminKey && len(RuntimeArgs.AdminKey) > 1 {