This commit is contained in:
2023-03-09 09:26:39 +08:00
parent 7f54a3c394
commit b33bbad5f3
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
ARTICLE_PATH=./article
ARTICLE_PATH=./article/
+1 -3
View File
@@ -27,9 +27,7 @@ func Index(c *gin.Context) {
filePath := path
uri := filePath[:len(filePath)-len(filepath.Ext(filePath))]
uri = strings.Replace(uri, "article\\", "", -1)
uri = strings.Replace(uri, "article/", "", -1)
uri = strings.Replace(uri, "\\", "-", -1)
uri = strings.Replace(uri, articleBasePath, "", -1)
uri = strings.Replace(uri, "/", "-", -1)
list = append(list, uri)