diff --git a/main.go b/main.go index 50ebf1b..37c84ea 100644 --- a/main.go +++ b/main.go @@ -63,7 +63,7 @@ Options:`) //rebuildTexts(q) r := gin.Default() - r.LoadHTMLGlob("templates/*") + r.LoadHTMLGlob(path.Join(path.Dir(executableFile), "templates/*")) r.GET("/", newNote) r.GET("/:title", editNote) r.GET("/:title/*option", everythingElse)