From 225c10fdf1d7ecc7ae6a0b4d3c61e9d2a4f1e1e7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 25 Nov 2024 22:55:09 +0100 Subject: Simplify logic --- src/templates.go | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3