aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index 4ef6f6d..23c3f69 100644
--- a/main.go
+++ b/main.go
@@ -7,6 +7,7 @@ import (
"fmt"
"github.com/BurntSushi/toml"
"github.com/anhgelus/golatt"
+ "html/template"
"log/slog"
"net/http"
"os"
@@ -127,6 +128,10 @@ func main() {
http.Redirect(w, r, "/", http.StatusTemporaryRedirect)
}
+ g.TemplateFuncMap = template.FuncMap{
+ "getImage": getImage,
+ }
+
host := fmt.Sprintf(":%d", port)
if dev {
if port != 80 {