From b0c70fc735e30e849a86d58c4eea1870b2a795cd Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 2 Oct 2017 00:55:37 +0200 Subject: [PATCH] Improved assets --- assets.go | 3 +-- config.json | 8 ++++---- images/elements/noise-strong.png | Bin 4297 -> 3157 bytes mixins/Sidebar.pixy | 2 +- mixins/StatusTabs.pixy | 27 +++++++++------------------ pages/frontpage/frontpage.go | 2 +- pages/notifications/notifications.go | 2 +- 7 files changed, 17 insertions(+), 27 deletions(-) diff --git a/assets.go b/assets.go index 9c0946b8..e4bfa579 100644 --- a/assets.go +++ b/assets.go @@ -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 diff --git a/config.json b/config.json index 6b208020..c3bbc092 100644 --- a/config.json +++ b/config.json @@ -35,20 +35,20 @@ "background_color": "#ffffff", "icons": [ { - "src": "images/brand/64", + "src": "images/brand/64.png", "sizes": "64x64" }, { - "src": "images/brand/144", + "src": "images/brand/144.png", "sizes": "144x144", "type": "image/png" }, { - "src": "images/brand/300", + "src": "images/brand/300.png", "sizes": "300x300" }, { - "src": "images/brand/600", + "src": "images/brand/600.png", "sizes": "600x600" } ] diff --git a/images/elements/noise-strong.png b/images/elements/noise-strong.png index 3672d82fcd8dc48bbd97293d769682106e5297e9..836dbceaaabe5fc726441b69d61dffefa411cff3 100644 GIT binary patch delta 3153 zcmV-X46gIZA=Ma=BYzAWNkl~ZaTUDt2db*-QKbME!`teZ1t@9X=-Joo3i{+_dEUw^NO{rc>=#y4x`y8oVq z7H!-7I(!nFO=ly6pLGUf(P#YxH=h&W>@#~$p}p@t6P`F`KhHFmxuzNB=I<8lj%hZV zL_NgLn&_-E$yqmt`{|*Ri~$yn^X%+5Xq!0atU0&m&9fGM8nop!zs+~2%NWii<3ZCQ z(dD>J(v$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