diff --git a/main.go b/main.go index 907185c..e371235 100644 --- a/main.go +++ b/main.go @@ -57,7 +57,7 @@ func login(c *gin.Context) { return } - c.HTML(http.StatusOK, "login.html", nil) + c.HTML(http.StatusOK, "login", nil) } func logout(c *gin.Context) { diff --git a/templates/login.html b/templates/login.html index 5d41fc1..4c45ab9 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,3 +1,4 @@ +{{define "login"}} @@ -40,3 +41,4 @@ +{{end}} \ No newline at end of file