Improved assets

This commit is contained in:
2017-10-02 00:55:37 +02:00
parent 504993861b
commit b0c70fc735
7 changed files with 17 additions and 27 deletions

View File

@ -44,8 +44,7 @@ func init() {
// Brand icons
app.Get("/images/brand/:file", func(ctx *aero.Context) string {
file := strings.TrimSuffix(ctx.Get("file"), ".webp")
return ctx.TryWebP("images/brand/"+file, ".png")
return ctx.File("images/brand/" + ctx.Get("file"))
})
// Cover image