Updated VS Code search settings and popular anime page

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

View File

@ -6,10 +6,15 @@
"files.exclude": { "files.exclude": {
"**/*.js": { "**/*.js": {
"when": "$(basename).ts" "when": "$(basename).ts"
} },
"components/": true
}, },
"files.associations": { "files.associations": {
"*.pixy": "jade", "*.pixy": "jade",
"*.scarlet": "stylus" "*.scarlet": "stylus"
},
"search.exclude": {
"components/": true,
"**/*.svg": true
} }
} }

View File

@ -16,5 +16,5 @@ func Get(ctx *aero.Context) string {
return ctx.Error(http.StatusInternalServerError, "Error fetching popular anime", err) 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:])

View File

@ -8,6 +8,7 @@ p, h1, h2, h3, h4, h5, h6
margin-bottom 0 margin-bottom 0
h2 h2
margin-top content-padding
margin-bottom content-padding margin-bottom content-padding
p > img p > img