13 lines
434 B
Plaintext

component Genres(genres []*arn.Genre)
h2 Genres
.grid
each genre in genres
a.grid-cell.ajax(href="/genres/" + genre.ID)
.backside-card.ui
.grid-text.front
GridIcon(arn.GetGenreIcon(genre.Name))
span= genre.Name
if len(genre.AnimeList) > 0
img.grid-image.back(src=genre.AnimeList[0].Image, alt=genre.AnimeList[0].Title.Romaji, title=genre.AnimeList[0].Title.Romaji + "\n" + genre.Name + " #1")