summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/templates.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/templates.go b/src/templates.go
index 258a133..cd4b9af 100644
--- a/src/templates.go
+++ b/src/templates.go
@@ -45,8 +45,7 @@ func init() {
switch {
case name[0] == '-':
continue
- case name == "index":
- default:
+ case name != "index":
path += strings.ReplaceAll(name, "-", "/")
}
templates[path] = buildTemplate(name)