23 lines
367 B
Go
Raw Normal View History

2016-11-19 23:54:31 +09:00
package genres
import (
"github.com/aerogo/aero"
2016-11-20 04:53:33 +09:00
"github.com/animenotifier/arn"
2016-11-19 23:54:31 +09:00
"github.com/animenotifier/notify.moe/components"
)
// Get ...
func Get(ctx *aero.Context) string {
var genres []string
2016-11-20 04:53:33 +09:00
for _, genre := range arn.Genres {
2017-11-30 02:59:19 +01:00
if genre == "Hentai" {
2016-11-20 19:26:11 +09:00
continue
}
genres = append(genres, genre)
2016-11-20 04:53:33 +09:00
}
return ctx.HTML(components.Genres(genres))
2016-11-19 23:54:31 +09:00
}