From 79c9cf5b28ec6fafc6381148bea8cf9816bc8c1d Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Mon, 25 Sep 2023 18:19:47 +0600 Subject: icons: Reorganize package icons with fixed dims Signed-off-by: Mubashshir --- layouts/partials/app.html | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/app.html b/layouts/partials/app.html index 541f053..3f029bf 100644 --- a/layouts/partials/app.html +++ b/layouts/partials/app.html @@ -1,21 +1,18 @@
- {{- with (printf "asset/icons/%s.png" .id | resources.Get) -}} + {{- with (printf "asset/packages/%s.png" .id | resources.Get | default ( + resources.Get "asset/icons/package.png" + )) -}}
- logo + logo
- {{- else -}} - {{- with (printf "asset/icons/%s.svg" .id | resources.Get) -}} -
- logo -
- {{- end }} {{- end }}

{{- .data.name | safeHTML -}} + {{/* url icon as svg */}}