summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--cache.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/cache.go b/cache.go
index d598d19..6496775 100644
--- a/cache.go
+++ b/cache.go
@@ -2,7 +2,6 @@ package main
 
 import (
 	"bytes"
-	"html/template"
 	"io/ioutil"
 	"log"
 	"net"
@@ -209,11 +208,8 @@ func pingAssets() {
 	cssMod := staticCache.cssMod
 
 	if !indexMod.Equal(indexStat.ModTime()) {
-		var err error
-		tmpls, err = template.ParseFiles("assets/tmpl/index.html")
-		if err != nil {
-			log.Printf("%v\n", err)
-		}
+		tmpls = initTemplates()
+
 		var b []byte
 		buf := bytes.NewBuffer(b)