aboutsummaryrefslogtreecommitdiff
path: root/route.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-07-25 10:25:47 +0000
committerFuwn <[email protected]>2021-07-25 10:25:47 +0000
commit63408bb390e773d3454a9baa3f4c4ad4441c6624 (patch)
treec354fedfae9b0752fd9fe898575c709480c90a7c /route.go
parentfeat(index): more gemini information (diff)
downloadspace-63408bb390e773d3454a9baa3f4c4ad4441c6624.tar.xz
space-63408bb390e773d3454a9baa3f4c4ad4441c6624.zip
fix(route): don't title case non-date blog posts
Diffstat (limited to 'route.go')
-rw-r--r--route.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/route.go b/route.go
index e1191f7..cda3f2d 100644
--- a/route.go
+++ b/route.go
@@ -118,7 +118,7 @@ func createBlogRoute(baseRoute string, postPath string, name string, reverse boo
postTitle = strings.Title(fileNameNoExt[11:])
case noDateNoShow:
- postTitle = strings.Title(fileNameNoExt)
+ postTitle = fileNameNoExt
}
files += fmt.Sprintf("=> %s %s\n", baseRoute+"/"+fileNameNoExt, postTitle)