diff --git a/layout/layout.pixy b/layout/layout.pixy index c3414eee..80af6e92 100644 --- a/layout/layout.pixy +++ b/layout/layout.pixy @@ -1,5 +1,5 @@ component Layout(content string) - html + html(lang="en") head title notify.moe - Beta meta(name="viewport", content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes") diff --git a/main.go b/main.go index 57311946..25461bc4 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,6 @@ import ( "github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/pages/airing" "github.com/animenotifier/notify.moe/pages/anime" - "github.com/animenotifier/notify.moe/pages/dashboard" "github.com/animenotifier/notify.moe/pages/forum" "github.com/animenotifier/notify.moe/pages/forums" "github.com/animenotifier/notify.moe/pages/genre" @@ -34,7 +33,9 @@ func main() { } // Ajax routes - app.Ajax("/", dashboard.Get) + app.Ajax("/", func(ctx *aero.Context) string { + return ctx.HTML("ARN 4.0 is currently under construction.
Support the development") + }) app.Ajax("/anime", search.Get) app.Ajax("/anime/:id", anime.Get) app.Ajax("/genres", genres.Get) @@ -47,6 +48,10 @@ func main() { app.Ajax("/airing", airing.Get) app.Ajax("/users", users.Get) + app.Get("/manifest.json", func(ctx *aero.Context) string { + return ctx.JSON(app.Config.Manifest) + }) + // Scripts scripts, _ := ioutil.ReadFile("temp/scripts.js") js := string(scripts)