update
This commit is contained in:
+1
-3
@@ -27,9 +27,7 @@ func Index(c *gin.Context) {
|
|||||||
|
|
||||||
filePath := path
|
filePath := path
|
||||||
uri := filePath[:len(filePath)-len(filepath.Ext(filePath))]
|
uri := filePath[:len(filePath)-len(filepath.Ext(filePath))]
|
||||||
uri = strings.Replace(uri, "article\\", "", -1)
|
uri = strings.Replace(uri, articleBasePath, "", -1)
|
||||||
uri = strings.Replace(uri, "article/", "", -1)
|
|
||||||
uri = strings.Replace(uri, "\\", "-", -1)
|
|
||||||
uri = strings.Replace(uri, "/", "-", -1)
|
uri = strings.Replace(uri, "/", "-", -1)
|
||||||
list = append(list, uri)
|
list = append(list, uri)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user