diff --git a/router.go b/router.go index e4605e5..95459b5 100644 --- a/router.go +++ b/router.go @@ -42,6 +42,7 @@ func Router() *gin.Engine { r.HTMLRender = loadTemplates("./theme/" + themeName + "/tmpl") r.Static("/statics", "./theme/"+themeName+"/statics") + r.StaticFile("/favicon.ico", "/theme/"+themeName+"/favicon.ico") r.GET("/", handler.Index) r.GET("/article/:id", handler.GetArticle)