summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-11-25 22:55:09 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-11-25 22:55:09 +0100
commit225c10fdf1d7ecc7ae6a0b4d3c61e9d2a4f1e1e7 (patch)
tree1f81f3b5b290bb803522f784a983544b0fbbb338
parent46f089fcfc7b2f9b5d7c1000a074de54be37c1f2 (diff)
Simplify logic
-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)