summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/templates.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates.go b/src/templates.go
index 5a4d7c5..258a133 100644
--- a/src/templates.go
+++ b/src/templates.go
@@ -41,7 +41,7 @@ func init() {
templates = make(map[string]*template.Template, len(ents))
for _, e := range ents {
path := "/"
- name, _ := strings.CutSuffix(e.Name(), ".html.tmpl")
+ name := strings.TrimSuffix(e.Name(), ".html.tmpl")
switch {
case name[0] == '-':
continue