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

Fixed about sticky page

This commit is contained in:
Zack Scholl 2016-02-09 18:59:01 -05:00
parent bd51d8c44b
commit 4652770a6f

View File

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