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:
parent
bd51d8c44b
commit
4652770a6f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user