diff options
author | 2023-09-25 18:19:47 +0600 | |
---|---|---|
committer | 2023-09-25 18:19:47 +0600 | |
commit | 79c9cf5b28ec6fafc6381148bea8cf9816bc8c1d (patch) | |
tree | cfd604727ea5c45d6a497a143c52ec93ce631d53 /layouts/partials | |
parent | c0bcd5ad1181aafb35321ca78384fea6ff290a10 (diff) | |
download | store-source-79c9cf5b28ec6fafc6381148bea8cf9816bc8c1d.tar.gz store-source-79c9cf5b28ec6fafc6381148bea8cf9816bc8c1d.zip |
icons: Reorganize package icons with fixed dims
Signed-off-by: Mubashshir <ahm@jadupc.com>
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/app.html | 13 |
1 files changed, 5 insertions, 8 deletions
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 @@ <div class="card"> <div class="info"> - {{- 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" + )) -}} <div class="icon"> - <img src="{{ .RelPermalink }}" alt="logo"> + <img src="{{ (.Fit `128x128`).RelPermalink }}" alt="logo"> </div> - {{- else -}} - {{- with (printf "asset/icons/%s.svg" .id | resources.Get) -}} - <div class="icon"> - <img src="{{ .RelPermalink }}" alt="logo"> - </div> - {{- end }} {{- end }} <div class="title"> <h1 class="name"> {{- .data.name | safeHTML -}} <span> <a {{ printf `href=%q` .data.url | safeHTMLAttr }} targer="_blank" style="padding"> + {{/* url icon as svg */}} <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" |