Updated VS Code search settings and popular anime page

This commit is contained in:
2017-06-25 17:25:20 +02:00
parent 280cd1268e
commit e0a4db6c47
4 changed files with 14 additions and 2 deletions

View File

@ -16,5 +16,5 @@ func Get(ctx *aero.Context) string {
return ctx.Error(http.StatusInternalServerError, "Error fetching popular anime", err)
}
return ctx.HTML(components.AnimeGrid(animeList))
return ctx.HTML(components.PopularAnime(animeList))
}

View File

@ -0,0 +1,6 @@
component PopularAnime(animeList []*arn.Anime)
h2 Top 3
AnimeGrid(animeList[:3])
h2 Popular
AnimeGrid(animeList[3:])