diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-11-25 22:55:09 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-11-25 22:55:09 +0100 |
commit | 225c10fdf1d7ecc7ae6a0b4d3c61e9d2a4f1e1e7 (patch) | |
tree | 1f81f3b5b290bb803522f784a983544b0fbbb338 /src/templates.go | |
parent | 46f089fcfc7b2f9b5d7c1000a074de54be37c1f2 (diff) |
Simplify logic
Diffstat (limited to 'src/templates.go')
-rw-r--r-- | src/templates.go | 3 |
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) |