diff options
| author | Fuwn <[email protected]> | 2021-07-17 19:34:38 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-07-17 19:34:38 +0000 |
| commit | 47d173dbdfae239edf505be2cd89a56414054ff8 (patch) | |
| tree | bc79221cc3877e8a3bcd01e89b11eec60f7c3ebb /route.go | |
| parent | docs(handler): add todo for automation (diff) | |
| download | space-47d173dbdfae239edf505be2cd89a56414054ff8.tar.xz space-47d173dbdfae239edf505be2cd89a56414054ff8.zip | |
fix(route): blog route to non-ext
Diffstat (limited to 'route.go')
| -rw-r--r-- | route.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -76,7 +76,7 @@ func createBlogRoute(baseRoute string, postPath string, name string) { for _, file := range contents { fileNameNoExt := strings.Replace(file.Name(), ".gmi", "", -1) - files += fmt.Sprintf("=> %s %s\n", baseRoute+"/"+file.Name(), fileNameNoExt) + files += fmt.Sprintf("=> %s %s\n", baseRoute+"/"+fileNameNoExt, fileNameNoExt) createRoute(baseRoute+"/"+fileNameNoExt, "default.gmi", "pages"+baseRoute+"/"+file.Name()) } files = utilities.TrimLastChar(files) |